Barcode Selection Listener

Defined in library scandit_datacapture_barcode_selection

BarcodeSelectionListener
abstract class 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)
void didUpdateSelection(BarcodeSelection barcodeSelection,
        BarcodeSelectionSession session)

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)
void didUpdateSession(BarcodeSelection barcodeSelection,
        BarcodeSelectionSession session)

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.

Barcode Selection Advanced Listener

Defined in library scandit_datacapture_barcode_selection

BarcodeSelectionAdvancedListener
abstract class BarcodeSelectionAdvancedListener

Added in version 6.14.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)
void didUpdateSelection(BarcodeSelection barcodeSelection,
        BarcodeSelectionSession session,
        Future<FrameData> getFrameData())

Added in version 6.14.0

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

didUpdateSession(barcodeSelection, session, getFrameData)
void didUpdateSession(BarcodeSelection barcodeSelection,
        BarcodeSelectionSession session,
        Future<FrameData> getFrameData())

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