Barcode Selection Listener

Defined under the namespace Scandit.Datacapture.Barcode.Selection

BarcodeSelectionListener
interface BarcodeSelectionListener

Added in version 6.10.0

The BarcodeSelection listener is the main way for hooking into BarcodeSelection. It provides a callback that is invoked when the state of selected barcodes changes.

didUpdateSelection(barcodeSelection, session, getFrameData)
didUpdateSelection?(barcodeSelection: BarcodeSelection,
        session: BarcodeSelectionSession,
        getFrameData: () => Promise<FrameData | null>): Promise<void>

Added in version 6.10.0

Invoked whenever a barcode is selected or a previously selected barcode is unselected.

FrameData is null if the camera is frozen and the selection is changed.

didUpdateSession(barcodeSelection, session, getFrameData)
didUpdateSession?(barcodeSelection: BarcodeSelection,
        session: BarcodeSelectionSession,
        getFrameData: () => Promise<FrameData | null>): Promise<void>

Added in version 6.10.0

Invoked after a frame has been processed by barcode selection and the session has been updated. In contrast to didUpdateSelection(), this method is invoked, regardless whether a code was selected or not.

FrameData is null if the camera is frozen and the selection is changed.