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:.

- labelCaptureAdvancedOverlay:viewForField:ofCapturedLabel:
- (nullable UIView *)labelCaptureAdvancedOverlay:(nonnull SDCLabelCaptureAdvancedOverlay *)overlay
                                    viewForField:(nonnull SDCLabelField *)capturedField
                                 ofCapturedLabel:(nonnull SDCCapturedLabel *)capturedLabel

Added in version 6.17.0

View to be drawn corresponding to the given SDCLabelField. This method will be called before labelCaptureAdvancedOverlay:anchorForField:ofCapturedLabel: and labelCaptureAdvancedOverlay:offsetForField:ofCapturedLabel:. Called from the main thread. Beware that this view can be overridden with SDCLabelCaptureAdvancedOverlay.setView:forField:ofCapturedLabel: 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 SDCLabelCaptureAdvancedOverlay.setView:forField:ofCapturedLabel:.

- labelCaptureAdvancedOverlay:anchorForField:ofCapturedLabel:
- (SDCAnchor)labelCaptureAdvancedOverlay:(nonnull SDCLabelCaptureAdvancedOverlay *)overlay
                          anchorForField:(nonnull SDCLabelField *)capturedField
                         ofCapturedLabel:(nonnull SDCCapturedLabel *)capturedLabel

Added in version 6.17.0

Anchor point that should be used for the view corresponding to the given SDCLabelField. This method will be called after labelCaptureAdvancedOverlay:viewForField:ofCapturedLabel: and before labelCaptureAdvancedOverlay:offsetForField:ofCapturedLabel:. Called from the main thread. Beware that this anchor can be overridden with SDCLabelCaptureAdvancedOverlay.setAnchor:forField:ofCapturedLabel: 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 SDCLabelCaptureAdvancedOverlay.setAnchor:forField:ofCapturedLabel:.

- labelCaptureAdvancedOverlay:offsetForField:ofCapturedLabel:
- (SDCPointWithUnit)labelCaptureAdvancedOverlay:(nonnull SDCLabelCaptureAdvancedOverlay *)overlay
                                 offsetForField:(nonnull SDCLabelField *)capturedField
                                ofCapturedLabel:(nonnull SDCCapturedLabel *)capturedLabel

Added in version 6.17.0

Offset to be set to the view corresponding to the given SDCLabelField. The offset is relative to the anchor point of the tracked field. This method will be called after labelCaptureAdvancedOverlay:viewForField:ofCapturedLabel: and labelCaptureAdvancedOverlay:anchorForField:ofCapturedLabel:. Called from the main thread. Beware that this offset can be overridden with SDCLabelCaptureAdvancedOverlay.setOffset:forField:ofCapturedLabel: 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 SDCLabelCaptureAdvancedOverlay.setOffset:forField:ofCapturedLabel:.