Barcode Check Highlight Provider

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

BarcodeCheckHighlightProvider
interface BarcodeCheckHighlightProvider

Added in version 7.1.0

An object used to retrieve the highlights for scanned barcodes.

highlightForBarcode(context, barcode, callback)
void highlightForBarcode(@NonNull Context context,
        @NonNull Barcode barcode,
        @NonNull Callback callback)

Added in version 7.1.0

Asks the provider for a highlight to display for the given barcode. If null is provided, no highlight 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 BarcodeCheckHighlightProvider.highlightForBarcode() to provide a highlight asynchronously.

onData(highlight)
void onData(@Nullable BarcodeCheckHighlight highlight)

Added in version 7.1.0

Function to notify the BarcodeCheckHighlightProvider to show the desired highlight for the provided barcode.