Barcode Count View Listener
Defined under the namespace Scandit.Datacapture.Barcode.Count.Ui
Note
Using this class requires the MatrixScan AR add-on.
- BarcodeCountViewListener
interface BarcodeCountViewListener
Added in version 6.17.0
- brushForRecognizedBarcode(view, trackedBarcode)
brushForRecognizedBarcode?(view: BarcodeCountView, trackedBarcode: TrackedBarcode): Brush | null
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)
brushForUnrecognizedBarcode?(view: BarcodeCountView, trackedBarcode: TrackedBarcode): Brush | null
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)
brushForRecognizedBarcodeNotInList?(view: BarcodeCountView, trackedBarcode: TrackedBarcode): Brush | null
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)
didTapRecognizedBarcode?(view: BarcodeCountView, trackedBarcode: TrackedBarcode):
void
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)
didTapUnrecognizedBarcode?(view: BarcodeCountView, trackedBarcode: TrackedBarcode):
void
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)
didTapFilteredBarcode?(view: BarcodeCountView, filteredBarcode: TrackedBarcode):
void
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)
didTapRecognizedBarcodeNotInList?(view: BarcodeCountView, trackedBarcode: TrackedBarcode):
void
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)
didCompleteCaptureList?(view: BarcodeCountView):
void
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.