Barcode Tracking Advanced Overlay Listener#

Defined in package com.scandit.datacapture.barcode.tracking.ui.overlay

BarcodeTrackingAdvancedOverlayListener#
interface BarcodeTrackingAdvancedOverlayListener

Added in version 6.0.0

viewForTrackedBarcode(overlay, trackedBarcode)#
@Nullable View viewForTrackedBarcode(@NonNull BarcodeTrackingAdvancedOverlay overlay,
        @NonNull TrackedBarcode trackedBarcode)

Added in version 6.0.0

View to be drawn corresponding to the given TrackedBarcode. This method will be called before anchorForTrackedBarcode() and offsetForTrackedBarcode(). Called from the main thread. 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().

anchorForTrackedBarcode(overlay, trackedBarcode)#
Anchor anchorForTrackedBarcode(@NonNull BarcodeTrackingAdvancedOverlay overlay,
        @NonNull TrackedBarcode trackedBarcode)

Added in version 6.0.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(). Called from the main thread. 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().

offsetForTrackedBarcode(overlay, trackedBarcode, view)#
@NonNull PointWithUnit offsetForTrackedBarcode(
        @NonNull BarcodeTrackingAdvancedOverlay overlay,
        @NonNull TrackedBarcode trackedBarcode,
        @NonNull View view)

Added in version 6.0.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(). Called from the main thread. 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().