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)#
didUpdateSelection?(barcodeSelection: BarcodeSelection,
        session: BarcodeSelectionSession): void

Added in version 6.10.0

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

didUpdateSession(barcodeSelection, session)#
didUpdateSession?(barcodeSelection: BarcodeSelection,
        session: BarcodeSelectionSession): 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.