Barcode Selection Listener

Defined under the namespace Scandit.Datacapture.Barcode.Selection

BarcodeSelectionListener
interface BarcodeSelectionListener

Added in version 6.12.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>): void

Added in version 6.12.0

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

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

Added in version 6.12.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.

Barcode Selection Advanced Listener

Defined under the namespace Scandit.Datacapture.Barcode.Selection