Barcode Ar Annotation

Defined in framework ScanditBarcodeCapture

SDCBarcodeArAnnotationTrigger

Added in version 7.1.0

The conditions that trigger an annotation to be displayed.

SDCBarcodeArAnnotationTriggerHighlightTap

Added in version 7.1.0

The annotation is shown when the user taps on the highlight.

SDCBarcodeArAnnotationTriggerHighlightTapAndBarcodeScan

Added in version 7.1.0

The annotation is shown immediately when the barcode is scanned, and can be hidden and shown again by tapping on the highlight.

SDCBarcodeArAnnotation
@protocol SDCBarcodeArAnnotation <NSObject>

Added in version 7.1.0

Common interface for Barcode Ar annotations. Annotations are used to display additional information and/or trigger actions. They are displayed outside of the area of a barcode, and attach to the scanned barcode. They are available in different types and have configurable styles. Currently, three types of highlights are supported: SDCBarcodeArInfoAnnotation, SDCBarcodeArPopoverAnnotation and SDCBarcodeArStatusIconAnnotation.

Info annotation Popover annotation Status icon annotation
- updateWithBarcodeLocation:highlight:
- (void)updateWithBarcodeLocation:(SDCQuadrilateral)location
                        highlight:(nullable UIView<SDCBarcodeArHighlight> *)highlight

Added in version 7.3.0

Called to update the view with barcode location and highlight location. Called from the main thread. This method should not be called directly, it will be invoked automatically when needed.

annotationTrigger
@property (nonatomic, assign) SDCBarcodeArAnnotationTrigger annotationTrigger

Added in version 7.1.0

The trigger that causes the annotation to be presented.