Barcode AR Annotation Provider
Defined in framework ScanditBarcodeCapture
- BarcodeArAnnotationProvider
protocol BarcodeArAnnotationProvider : NSObjectProtocol
Added in version 7.1.0
An object used to retrieve the annotations for scanned barcodes.
- annotation
func annotation(for barcode: Barcode, completionHandler: @escaping ((any UIView & BarcodeArAnnotation)?) ->
Void) ->VoidAdded in version 7.1.0
Asks the provider for an annotation to display for the given barcode. If null is provided, no annotation will be shown. This method is called on the main thread, and completionHandler must be invoked on the main thread.
- annotation
func annotation(for barcode: Barcode) async -> (any UIView & BarcodeArAnnotation)?
Added in version 7.1.0
Asks the provider for an annotation to display for the given barcode. If null is provided, no annotation will be shown. This method is called on the main thread, and callback::onData must be invoked on the main thread.