Barcode Count View Listener

Defined in library scandit_datacapture_barcode_count_ui

Note

Using this class requires the MatrixScan AR add-on.

BarcodeCountViewListener
abstract class BarcodeCountViewListener

Added in version 6.17.0

brushForRecognizedBarcode(view, trackedBarcode)
Brush? brushForRecognizedBarcode(BarcodeCountView view,
        TrackedBarcode trackedBarcode)

Added in version 6.17.0

This method is called only when the view uses the BarcodeCountViewStyle.dot style.

Callback method that can be used to set a Brush for a recognized barcode. When setting a BarcodeCountCaptureList to the mode, this brush will be used for recognized barcodes that are part of the target list. It is called when a new recognized barcode appears. Called from the rendering thread. If the callback returns null, then no visualization will be drawn for the recognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by didTapRecognizedBarcode() callback will not be performed.

brushForUnrecognizedBarcode(view, trackedBarcode)
Brush? brushForUnrecognizedBarcode(
        BarcodeCountView view,
        TrackedBarcode trackedBarcode)

Added in version 6.17.0

This method is called only when the view uses the BarcodeCountViewStyle.dot style.

Callback method that can be used to set a Brush for an unrecognized barcode. It is called when a new unrecognized barcode appears. Called from the rendering thread. If the callback returns null, then no visualization will be drawn for the unrecognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by didTapUnrecognizedBarcode() callback will not be performed.

brushForRecognizedBarcodeNotInList(view, trackedBarcode)
Brush? brushForRecognizedBarcodeNotInList(
        BarcodeCountView view,
        TrackedBarcode trackedBarcode)

Added in version 6.17.0

This method is called only when the view uses the BarcodeCountViewStyle.dot style.

Callback method that can be used to set a Brush for a recognized barcode that’s not part of the target BarcodeCountCaptureList. It is called when a new recognized barcode that is not part of the target :type:barcode.count.BarcodeCountCaptureList appears. When BarcodeCountCaptureList is not set, this method will never be called. Called from the rendering thread. If the callback returns null, then no visualization will be drawn for the recognized barcode. Additionally, tapping on the barcode will have no effect - the action defined by didTapRecognizedBarcode() callback will not be performed.

didTapRecognizedBarcode(view, trackedBarcode)
void didTapRecognizedBarcode(BarcodeCountView view,
        TrackedBarcode trackedBarcode)

Added in version 6.17.0

Callback method that can be used to define an action that should be performed once a recognized barcode is tapped. When setting a BarcodeCountCaptureList to the mode, this method will be called only when tapping recognized barcodes that are part of the target list. Called from the main thread.

didTapUnrecognizedBarcode(view, trackedBarcode)
void didTapUnrecognizedBarcode(BarcodeCountView view,
        TrackedBarcode trackedBarcode)

Added in version 6.17.0

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

didTapFilteredBarcode(view, filteredBarcode)
void didTapFilteredBarcode(BarcodeCountView view,
        TrackedBarcode filteredBarcode)

Added in version 6.17.0

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

didTapRecognizedBarcodeNotInList(view, trackedBarcode)
void didTapRecognizedBarcodeNotInList(BarcodeCountView view,
        TrackedBarcode trackedBarcode)

Added in version 6.17.0

Callback method that can be used to define an action that should be performed once a recognized barcode that’s not part of the target BarcodeCountCaptureList is tapped. When BarcodeCountCaptureList is not set, this method will never be called. Called from the main thread.

didCompleteCaptureList(view)
void didCompleteCaptureList(BarcodeCountView view)

Added in version 6.17.0

Callback method that can be used to define an action that should be performed when all the items of a capture list have been correctly scanned. If there is no capture list set, this method will never be called. Called from the main thread.