Barcode Tracking Advanced Overlay Delegate#

Defined in framework ScanditBarcodeCapture

SDCBarcodeTrackingAdvancedOverlayDelegate#
@protocol SDCBarcodeTrackingAdvancedOverlayDelegate <NSObject>

Added in version 6.0.0

- barcodeTrackingAdvancedOverlay:viewForTrackedBarcode:#
- (nullable UIView *)barcodeTrackingAdvancedOverlay:(nonnull SDCBarcodeTrackingAdvancedOverlay *)
                                                    overlay
                              viewForTrackedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.0.0

View to be drawn corresponding to the given SDCTrackedBarcode. This method will be called before barcodeTrackingAdvancedOverlay:anchorForTrackedBarcode: and barcodeTrackingAdvancedOverlay:offsetForTrackedBarcode:. Called from the main thread. Beware that this view can be overridden with SDCBarcodeTrackingAdvancedOverlay.setView:forTrackedBarcode: 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 SDCBarcodeTrackingAdvancedOverlay.setView:forTrackedBarcode:.

- barcodeTrackingAdvancedOverlay:anchorForTrackedBarcode:#
- (SDCAnchor)barcodeTrackingAdvancedOverlay:(nonnull SDCBarcodeTrackingAdvancedOverlay *)overlay
                    anchorForTrackedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.0.0

Anchor point that should be used for the view corresponding to the given SDCTrackedBarcode. This method will be called after barcodeTrackingAdvancedOverlay:viewForTrackedBarcode: and before barcodeTrackingAdvancedOverlay:offsetForTrackedBarcode:. Called from the main thread. Beware that this anchor can be overridden with SDCBarcodeTrackingAdvancedOverlay.setAnchor:forTrackedBarcode: 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 SDCBarcodeTrackingAdvancedOverlay.setAnchor:forTrackedBarcode:.

- barcodeTrackingAdvancedOverlay:offsetForTrackedBarcode:#
- (SDCPointWithUnit)barcodeTrackingAdvancedOverlay:(nonnull SDCBarcodeTrackingAdvancedOverlay *)overlay
                           offsetForTrackedBarcode:(nonnull SDCTrackedBarcode *)trackedBarcode

Added in version 6.0.0

Offset to be set to the view corresponding to the given SDCTrackedBarcode. The offset is relative to the anchor point of the tracked barcode. This method will be called after barcodeTrackingAdvancedOverlay:viewForTrackedBarcode: and barcodeTrackingAdvancedOverlay:anchorForTrackedBarcode:. Called from the main thread. Beware that this offset can be overridden with SDCBarcodeTrackingAdvancedOverlay.setOffset:forTrackedBarcode: 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 SDCBarcodeTrackingAdvancedOverlay.setOffset:forTrackedBarcode:.