Label Capture Advanced Overlay Listener
Defined in framework ScanditLabelCapture
- SDCLabelCaptureAdvancedOverlayDelegate
@protocol SDCLabelCaptureAdvancedOverlayDelegate <NSObject>
Added in version 6.16.0
- - labelCaptureAdvancedOverlay:viewForCapturedLabel:
- (nullable UIView *)labelCaptureAdvancedOverlay:(nonnull SDCLabelCaptureAdvancedOverlay *)overlay viewForCapturedLabel:(nonnull SDCCapturedLabel *)capturedLabel
Added in version 6.16.0
View to be drawn corresponding to the given SDCCapturedLabel. This method will be called before labelCaptureAdvancedOverlay:anchorForCapturedLabel: and labelCaptureAdvancedOverlay:offsetForCapturedLabel:. Called from the main thread. Beware that this view can be overridden with SDCLabelCaptureAdvancedOverlay.setView:forCapturedLabel: 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 SDCLabelCaptureAdvancedOverlay.setView:forCapturedLabel:.
- - labelCaptureAdvancedOverlay:anchorForCapturedLabel:
- (SDCAnchor)labelCaptureAdvancedOverlay:(nonnull SDCLabelCaptureAdvancedOverlay *)overlay anchorForCapturedLabel:(nonnull SDCCapturedLabel *)capturedLabel
Added in version 6.16.0
Anchor point that should be used for the view corresponding to the given SDCCapturedLabel. This method will be called after labelCaptureAdvancedOverlay:viewForCapturedLabel: and before labelCaptureAdvancedOverlay:offsetForCapturedLabel:. Called from the main thread. Beware that this anchor can be overridden with SDCLabelCaptureAdvancedOverlay.setAnchor:forCapturedLabel: 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 SDCLabelCaptureAdvancedOverlay.setAnchor:forCapturedLabel:.
- - labelCaptureAdvancedOverlay:offsetForCapturedLabel:
- (SDCPointWithUnit)labelCaptureAdvancedOverlay:(nonnull SDCLabelCaptureAdvancedOverlay *)overlay offsetForCapturedLabel:(nonnull SDCCapturedLabel *)capturedLabel
Added in version 6.16.0
Offset to be set to the view corresponding to the given SDCCapturedLabel. The offset is relative to the anchor point of the tracked label. This method will be called after labelCaptureAdvancedOverlay:viewForCapturedLabel: and labelCaptureAdvancedOverlay:anchorForCapturedLabel:. Called from the main thread. Beware that this offset can be overridden with SDCLabelCaptureAdvancedOverlay.setOffset:forCapturedLabel: 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 SDCLabelCaptureAdvancedOverlay.setOffset:forCapturedLabel:.