Barcode Ar Popover Annotation

Defined under the namespace Scandit.Datacapture.Barcode.Ar.Ui

BarcodeArPopoverAnnotationAnchor

Added in version 7.3.0

The available anchor options for a popover annotation.

Left

Added in version 7.3.0

The annotation is anchored at its left edge.

Right

Added in version 7.3.0

The annotation is anchored at its right edge.

Bottom

Added in version 7.3.0

The annotation is anchored at its bottom-center point.

Top

Added in version 7.3.0

The annotation is anchored at its top-center point.

BarcodeArPopoverAnnotationListener
interface BarcodeArPopoverAnnotationListener

Added in version 7.1.0

The listener for the popover annotation.

onPopoverButtonTapped(popover, button, buttonIndex)
onPopoverButtonTapped?(popover: BarcodeArPopoverAnnotation,
        button: BarcodeArPopoverAnnotationButton,
        buttonIndex: number): void

Added in version 7.1.0

Called when a button is tapped. The buttonIndex parameter can be used to identify which button was tapped. Called only if BarcodeArPopoverAnnotation.isEntirePopoverTappable is false.

onPopoverTapped(popover)
onPopoverTapped?(popover: BarcodeArPopoverAnnotation): void

Added in version 7.1.0

Called when the popover is tapped. Called only if BarcodeArPopoverAnnotation.isEntirePopoverTappable is true.

BarcodeArPopoverAnnotation
class BarcodeArPopoverAnnotation : ScanditHTMLElement, BarcodeArAnnotation

Added in version 7.1.0

An annotation comprising a set of buttons, each containing an icon and text, which appears only when the user taps on the corresponding barcode highlight.

Popover annotation
constructor()
constructor()

Added in version 7.1.0

Constructs a new instance with the given buttons and barcode.

create(barcode)
static create(barcode: Barcode): BarcodeArPopoverAnnotation

Added in version 7.1.0

Register if needed the web component and constructs a new instance. Use .append method to add buttons.

isEntirePopoverTappable
isEntirePopoverTappable: boolean

Added in version 7.1.0

If false each individual button in the popover is tappable. If true the entire popover is tappable. Default is false.

anchor
anchor: BarcodeArPopoverAnnotationAnchor

Added in version 7.3.0

The annotation anchor. The default value is BarcodeArPopoverAnnotationAnchor.Bottom.

listener
listener?: BarcodeArPopoverAnnotationListener

Added in version 7.1.0

An object that receives notifications for UI-related events, such as tapping on a button.

annotationTrigger
annotationTrigger: BarcodeArAnnotationTrigger

Added in version 7.1.0

The trigger that causes the annotation to be presented. By default is BarcodeArAnnotationTrigger.HighlightTap.

barcode
get barcode(): Barcode

Added in version 7.1.0

Returns the barcode provided in the constructor.

updatePosition(point, transformOrigin, rotationAngle)
updatePosition(point: Point,
        transformOrigin: Point,
        rotationAngle: number): void

Added in version 7.3.0

Called when the position of the element is updated.

BarcodeArPopoverAnnotationButton
class BarcodeArPopoverAnnotationButton : ScanditHTMLElement

Added in version 7.1.0

constructor()
constructor()

Added in version 7.1.0

Constructs a new instance with the given icon and text.

create(icon, text)
static create(icon: ScanditIcon,
        text?: string): BarcodeArPopoverAnnotationButton

Added in version 7.1.0

Constructs a new instance with the given icon and text.

textColor
textColor: Color

Added in version 7.1.0

The color of the text. Default is #3D4852.

textSize
textSize: number

Added in version 7.1.0

The size of the text. Default is 10 scale-independent pixels.

text
get text(): string

Added in version 7.1.0

The text provided in the constructor.

disabled
disabled: boolean

Added in version 7.1.0

Whether the button is disabled. Default is false.