Barcode Batch Advanced Overlay Listener

Defined in framework ScanditBarcodeCapture

Note

Using this class requires the MatrixScan AR add-on.

BarcodeBatchAdvancedOverlayDelegate
protocol BarcodeBatchAdvancedOverlayDelegate : NSObjectProtocol

Added in version 7.0.0

barcodeBatchAdvancedOverlay
open func barcodeBatchAdvancedOverlay(_ overlay: BarcodeBatchAdvancedOverlay, viewFor trackedBarcode: TrackedBarcode) -> UIView?

Added in version 7.0.0

View to be drawn corresponding to the given TrackedBarcode. This method will be called before barcodeBatchAdvancedOverlay() and barcodeBatchAdvancedOverlay(). Beware that this view can be overridden with BarcodeBatchAdvancedOverlay.setView() 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 BarcodeBatchAdvancedOverlay.setView().

Called from the main thread.

barcodeBatchAdvancedOverlay
open func barcodeBatchAdvancedOverlay(_ overlay: BarcodeBatchAdvancedOverlay, anchorFor trackedBarcode: TrackedBarcode) -> Anchor

Added in version 7.0.0

Anchor point that should be used for the view corresponding to the given TrackedBarcode. This method will be called after barcodeBatchAdvancedOverlay() and before barcodeBatchAdvancedOverlay(). Beware that this anchor can be overridden with BarcodeBatchAdvancedOverlay.setAnchor() 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 BarcodeBatchAdvancedOverlay.setAnchor().

Called from the main thread.

barcodeBatchAdvancedOverlay
open func barcodeBatchAdvancedOverlay(_ overlay: BarcodeBatchAdvancedOverlay, offsetFor trackedBarcode: TrackedBarcode) -> PointWithUnit

Added in version 7.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 barcodeBatchAdvancedOverlay() and barcodeBatchAdvancedOverlay(). Beware that this offset can be overridden with BarcodeBatchAdvancedOverlay.setOffset() 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 BarcodeBatchAdvancedOverlay.setOffset().

Called from the main thread.