Barcode AR Annotation Provider
Defined in package com.scandit.datacapture.barcode.ar.ui.annotations
- BarcodeArAnnotationProvider
interface BarcodeArAnnotationProviderAdded in version 7.1.0
An object used to retrieve the annotations for scanned barcodes.
- annotationForBarcode(context, barcode, callback)
fun annotationForBarcode(context: Context, barcode: Barcode, callback: Callback)
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.
- Callback
interface CallbackAdded in version 7.1.0
The callback used in BarcodeArAnnotationProvider.annotationForBarcode() to provide a highlight asynchronously.
- onData(annotation)
fun onData(annotation: BarcodeArAnnotation?)
Added in version 7.1.0
Function to notify the BarcodeArAnnotationProvider to show the desired annotation for the provided barcode.