Barcode Count Basic Overlay UI Listener

Defined in library scandit_datacapture_barcode_count_ui

Note

Using this class requires the MatrixScan AR add-on.

BarcodeCountViewUiListener
abstract class BarcodeCountViewUiListener

Added in version 6.17.0

didTapListButton(view)
void didTapListButton(BarcodeCountView view)

Added in version 6.17.0

Deprecated since version 8.7: Use BarcodeCountViewUiExtendedListener.didTapListButtonWithSnapshot() instead, which also receives a BarcodeCountSessionSnapshot. The callback without the snapshot will be removed in 9.0.

Callback method that can be used to define an action that should be performed once the list button is tapped. Called from the main thread.

didTapExitButton(view)
void didTapExitButton(BarcodeCountView view)

Added in version 6.17.0

Deprecated since version 8.7: Use BarcodeCountViewUiExtendedListener.didTapExitButtonWithSnapshot() instead, which also receives a BarcodeCountSessionSnapshot. The callback without the snapshot will be removed in 9.0.

Callback method that can be used to define an action that should be performed once the exit button is tapped. Called from the main thread.

didTapSingleScanButton(view)
void didTapSingleScanButton(BarcodeCountView view)

Added in version 6.17.0

Callback method that can be used to define an action that should be performed once the single scan button is tapped. Called from the main thread.

BarcodeCountViewUiExtendedListener
abstract class BarcodeCountViewUiExtendedListener : BarcodeCountViewUiListener

Added in version 8.7.0

Extended version of BarcodeCountViewUiListener that delivers a BarcodeCountSessionSnapshot with the list and exit button taps. On Dart the base interface’s methods cannot take an additional parameter without breaking existing implementations, so the snapshot-carrying callbacks live here instead.

On this interface BarcodeCountViewUiListener.didTapListButton() and BarcodeCountViewUiListener.didTapExitButton() are never invoked — the WithSnapshot variants below receive those taps instead. Overriding either of them here has no effect. BarcodeCountViewUiListener.didTapSingleScanButton() is inherited and behaves as usual. It adds the following:

didTapListButtonWithSnapshot(view, snapshot)
void didTapListButtonWithSnapshot(BarcodeCountView view,
        BarcodeCountSessionSnapshot? snapshot)

Added in version 8.7.0

Callback method that can be used to define an action that should be performed once the list button is tapped. Replaces BarcodeCountViewUiListener.didTapListButton() on this interface. Receives an immutable BarcodeCountSessionSnapshot of the session at the moment of the tap, or null when the SDK has no session cached yet. Called from the main thread.

didTapExitButtonWithSnapshot(view, snapshot)
void didTapExitButtonWithSnapshot(BarcodeCountView view,
        BarcodeCountSessionSnapshot? snapshot)

Added in version 8.7.0

Callback method that can be used to define an action that should be performed once the exit button is tapped. Replaces BarcodeCountViewUiListener.didTapExitButton() on this interface. Receives an immutable BarcodeCountSessionSnapshot of the session at the moment of the tap, or null when the SDK has no session cached yet. Called from the main thread.