Label Capture Advanced Overlay Listener
Defined in framework ScanditLabelCapture
- LabelCaptureAdvancedOverlayDelegate
protocol LabelCaptureAdvancedOverlayDelegate : NSObjectProtocol
Added in version 6.16.0
The listener interface for configuring advanced overlays in label capture. This interface allows you to provide custom views, anchors, and offsets for captured labels and their individual fields, enabling rich AR-style overlays.
- labelCaptureAdvancedOverlay
open func labelCaptureAdvancedOverlay(_ overlay: LabelCaptureAdvancedOverlay, viewFor capturedLabel: CapturedLabel) -> UIView?
Added in version 6.16.0
View to be drawn corresponding to the given CapturedLabel. This method will be called before labelCaptureAdvancedOverlay() and labelCaptureAdvancedOverlay(). Called from the main thread. Beware that this view can be overridden with LabelCaptureAdvancedOverlay.setView() method. This method will only be called for new tracked labels that do not have a view yet, e.g. a view set by a call to LabelCaptureAdvancedOverlay.setView().
- labelCaptureAdvancedOverlay
open func labelCaptureAdvancedOverlay(_ overlay: LabelCaptureAdvancedOverlay, anchorFor capturedLabel: CapturedLabel) -> Anchor
Added in version 6.16.0
Anchor point that should be used for the view corresponding to the given CapturedLabel. This method will be called after labelCaptureAdvancedOverlay() and before labelCaptureAdvancedOverlay(). Called from the main thread. Beware that this anchor can be overridden with LabelCaptureAdvancedOverlay.setAnchor() method. This method will only be called for new tracked labels that do not have an anchor yet, e.g. an anchor set by a call to LabelCaptureAdvancedOverlay.setAnchor().
- labelCaptureAdvancedOverlay
open func labelCaptureAdvancedOverlay(_ overlay: LabelCaptureAdvancedOverlay, offsetFor capturedLabel: CapturedLabel) -> PointWithUnit
Added in version 6.16.0
Offset to be set to the view corresponding to the given CapturedLabel. The offset is relative to the anchor point of the tracked label. This method will be called after labelCaptureAdvancedOverlay() and labelCaptureAdvancedOverlay(). Called from the main thread. Beware that this offset can be overridden with LabelCaptureAdvancedOverlay.setOffset() method. This method will only be called for new tracked labels that do not have an offset yet, e.g. an offset set by a call to LabelCaptureAdvancedOverlay.setOffset().
- labelCaptureAdvancedOverlay
optional func labelCaptureAdvancedOverlay(_ overlay: LabelCaptureAdvancedOverlay, viewFor capturedField: LabelField, of capturedLabel: CapturedLabel) -> UIView?
Added in version 6.17.0
View to be drawn corresponding to the given LabelField. This method will be called before labelCaptureAdvancedOverlay() and labelCaptureAdvancedOverlay(). Called from the main thread. Beware that this view can be overridden with LabelCaptureAdvancedOverlay.setView() method. This method will only be called for new tracked fields that do not have a view yet, e.g. a view set by a call to LabelCaptureAdvancedOverlay.setView().
- labelCaptureAdvancedOverlay
optional func labelCaptureAdvancedOverlay(_ overlay: LabelCaptureAdvancedOverlay, anchorFor capturedField: LabelField, of capturedLabel: CapturedLabel) -> Anchor
Added in version 6.17.0
Anchor point that should be used for the view corresponding to the given LabelField. This method will be called after labelCaptureAdvancedOverlay() and before labelCaptureAdvancedOverlay(). Called from the main thread. Beware that this anchor can be overridden with LabelCaptureAdvancedOverlay.setAnchor() method. This method will only be called for new tracked fields that do not have an anchor yet, e.g. an anchor set by a call to LabelCaptureAdvancedOverlay.setAnchor().
- labelCaptureAdvancedOverlay
optional func labelCaptureAdvancedOverlay(_ overlay: LabelCaptureAdvancedOverlay, offsetFor capturedField: LabelField, of capturedLabel: CapturedLabel) -> PointWithUnit
Added in version 6.17.0
Offset to be set to the view corresponding to the given LabelField. The offset is relative to the anchor point of the tracked field. This method will be called after labelCaptureAdvancedOverlay() and labelCaptureAdvancedOverlay(). Called from the main thread. Beware that this offset can be overridden with LabelCaptureAdvancedOverlay.setOffset() method. This method will only be called for new tracked fields that do not have an offset yet, e.g. an offset set by a call to LabelCaptureAdvancedOverlay.setOffset().