Barcode Check Annotation Provider

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

BarcodeCheckAnnotationProvider
interface BarcodeCheckAnnotationProvider

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 BarcodeCheckAnnotationProvider.annotationForBarcode() to provide a highlight asynchronously.

onData(annotation)
void onData(@Nullable BarcodeCheckAnnotation annotation)

Added in version 7.1.0

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