Barcode Tracking Advanced Overlay Listener

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

Note

Using this class requires the MatrixScan AR add-on.

BarcodeTrackingAdvancedOverlayListener
interface BarcodeTrackingAdvancedOverlayListener

Added in version 6.8.0

viewForTrackedBarcode(overlay, trackedBarcode)
viewForTrackedBarcode?(overlay: BarcodeTrackingAdvancedOverlay,
        trackedBarcode: TrackedBarcode): Promise<TrackedBarcodeView | null>

Added in version 6.8.0

View to be drawn corresponding to the given TrackedBarcode. This method will be called before anchorForTrackedBarcode() and offsetForTrackedBarcode(). Beware that this view can be overridden with BarcodeTrackingAdvancedOverlay.setViewForTrackedBarcode() method. This method will only be called for new tracked barcodes that do not have a view yet, e.g. a view set by a call to BarcodeTrackingAdvancedOverlay.setViewForTrackedBarcode().

Called from the main thread.

Note

Requires a special license key to support rendering any kind of images since this feature is available only in limited countries. Please contact support@scandit.com for details

anchorForTrackedBarcode(overlay, trackedBarcode)
anchorForTrackedBarcode?(overlay: BarcodeTrackingAdvancedOverlay,
        trackedBarcode: TrackedBarcode): Anchor

Added in version 6.8.0

Anchor point that should be used for the view corresponding to the given TrackedBarcode. This method will be called after viewForTrackedBarcode() and before offsetForTrackedBarcode(). Beware that this anchor can be overridden with BarcodeTrackingAdvancedOverlay.setAnchorForTrackedBarcode() method. This method will only be called for new tracked barcodes that do not have an anchor yet, e.g. an anchor set by a call to BarcodeTrackingAdvancedOverlay.setAnchorForTrackedBarcode().

Called from the main thread.

offsetForTrackedBarcode(overlay, trackedBarcode)
offsetForTrackedBarcode?(overlay: BarcodeTrackingAdvancedOverlay,
        trackedBarcode: TrackedBarcode): PointWithUnit

Added in version 6.8.0

Offset to be set to the view corresponding to the given TrackedBarcode. The offset is relative to the anchor point of the tracked barcode. This method will be called after viewForTrackedBarcode() and anchorForTrackedBarcode(). Beware that this offset can be overridden with BarcodeTrackingAdvancedOverlay.setOffsetForTrackedBarcode() method. This method will only be called for new tracked barcodes that do not have an offset yet, e.g. an offset set by a call to BarcodeTrackingAdvancedOverlay.setOffsetForTrackedBarcode().

Called from the main thread.

didTapViewForTrackedBarcode(overlay, trackedBarcode)
didTapViewForTrackedBarcode?(overlay: BarcodeTrackingAdvancedOverlay,
        trackedBarcode: TrackedBarcode): void

Added in version 6.8.0

Callback method that can be used to define an action that should be performed when a view for a tracked barcode is tapped.