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 BarcodeCountViewListenerAdded 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.
- 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 didTapRecognizedBarcodeNotInList() callback will not be performed.
- didTapRecognizedBarcode(view, trackedBarcode)
voiddidTapRecognizedBarcode(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.
- didTapFilteredBarcode(view, filteredBarcode)
voiddidTapFilteredBarcode(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)
voiddidTapRecognizedBarcodeNotInList(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)
voiddidCompleteCaptureList(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.
Barcode Count View Extended Listener
- BarcodeCountViewExtendedListener
abstract class BarcodeCountViewExtendedListener : BarcodeCountViewListener
Added in version 8.3.0
Extended listener interface that adds new methods to BarcodeCountViewListener without breaking existing implementations.
- didTapCluster(view, cluster)
voiddidTapCluster(BarcodeCountView view, Cluster cluster)Added in version 8.3.0
Callback method that can be used to define an action that should be performed once a cluster is tapped. Called from the main thread.
Note
This method is only available in BarcodeCountViewExtendedListener. To use it, implement the extended listener instead of the base listener.