Barcode AR View
Defined under the namespace Scandit.Datacapture.Barcode.Ar.Ui
- BarcodeArViewUiListener
interface BarcodeArViewUiListenerAdded in version 8.2.0
- didTapHighlightForBarcode(barcodeAr, barcode, highlight)
didTapHighlightForBarcode(barcodeAr: BarcodeAr, barcode: Barcode, highlight: BarcodeArHighlight):
voidAdded in version 8.2.0
Callback method that is called when a barcode highlight is tapped in the view.
- BarcodeArView
class BarcodeArViewAdded in version 8.2.0
Barcode AR comes with a ready-to-use UI that allows highlighting barcodes and displaying additional information over them. The BarcodeArView integrates with any app in just a few lines of code.
- connectToElement(element)
connectToElement(element: HTMLElement): Promise<
void>Added in version 8.2.0
Connect the barcode ar view to a given HTML element, so it’s size and position can be mirrored.
- detachFromElement()
detachFromElement(): Promise<
void>Added in version 8.2.0
Detach the barcode ar view from the currently connected HTML element. This releases the HTML element and removes any listeners or resources related to it.
- uiListener
uiListener: BarcodeArViewUiListener | null
Added in version 8.2.0
Sets the listener which is called whenever a barcode highlight is tapped in the view.
- highlightProvider
highlightProvider: BarcodeArHighlightProvider | null
Added in version 8.2.0
Sets the provider which supplies highlight information for barcodes in the view. If null, a default provider is used, which returns a predefined highlight for each barcode.
- annotationProvider
annotationProvider: BarcodeArAnnotationProvider | null
Added in version 8.2.0
Sets the provider which supplies annotation information for barcodes in the view. If null, no annotation will be displayed for any barcode.
- shouldShowTorchControl
shouldShowTorchControl: boolean
Added in version 8.2.0
Indicates whether the torch control button should be shown to the user.
Default is false.
- torchControlPosition
torchControlPosition: Anchor
Added in version 8.2.0
Updates the position of the torch control button.
Default is Anchor.TopLeft.
- shouldShowZoomControl
shouldShowZoomControl: boolean
Added in version 8.2.0
Indicates whether the zoom control button should be shown to the user.
- zoomControlPosition
zoomControlPosition: Anchor
Added in version 8.2.0
Updates the position of the zoom control button.
Default is Anchor.BottomRight.
- shouldShowCameraSwitchControl
shouldShowCameraSwitchControl: boolean
Added in version 8.2.0
Indicates whether the camera switch control button should be shown to the user.
- cameraSwitchControlPosition
cameraSwitchControlPosition: Anchor
Added in version 8.2.0
Updates the position of the camera switch control button.
Default is Anchor.TopRight.
- shouldShowMacroModeControl
shouldShowMacroModeControl: boolean
Added in version 8.2.0
Indicates whether the macro mode control button should be shown to the user.
- macroModeControlPosition
macroModeControlPosition: Anchor
Added in version 8.2.0
Updates the position of the macro mode control button.
Default is Anchor.TopRight.
- reset()
reset(): Promise<
void>Added in version 8.2.0
Clears all highlights and annotations currently visible and calls highlightProvider and annotationProvider to supply new highlights and annotations.