Barcode Ar Annotation Provider

Defined in package com.scandit.datacapture.barcode.ar.ui.annotations

BarcodeArAnnotationProvider
interface BarcodeArAnnotationProvider

Added in version 7.1.0

An object used to retrieve the annotations for scanned barcodes.

annotationForBarcode(context, barcode, callback)
void annotationForBarcode(@NonNull Context context,
        @NonNull Barcode barcode,
        @NonNull 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 Callback

Added in version 7.1.0

The callback used in BarcodeArAnnotationProvider.annotationForBarcode() to provide a highlight asynchronously.

onData(annotation)
void onData(@Nullable BarcodeArAnnotation annotation)

Added in version 7.1.0

Function to notify the BarcodeArAnnotationProvider to show the desired annotation for the provided barcode.