Barcode AR Highlight Provider

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

BarcodeArHighlightProvider
interface BarcodeArHighlightProvider

Added in version 7.1.0

An object used to retrieve the highlights for scanned barcodes.

highlightForBarcode(context, barcode, callback)
fun highlightForBarcode(context: Context,
        barcode: Barcode,
        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 BarcodeArHighlightProvider.highlightForBarcode() to provide a highlight asynchronously.

onData(highlight)
fun onData(highlight: BarcodeArHighlight?)

Added in version 7.1.0

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