Barcode Count View Listener

Defined in package com.scandit.datacapture.barcode.count.ui.view

Note

Using this class requires the MatrixScan AR add-on.

BarcodeCountViewListener
interface BarcodeCountViewListener

Added in version 6.15.0

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

Added in version 6.15.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 onRecognizedBarcodeTapped() callback will not be performed.

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

Added in version 6.15.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 onRecognizedBarcodeNotInListTapped() callback will not be performed.

brushForCluster(view, cluster)
fun brushForCluster(view: BarcodeCountView,
        cluster: Cluster): Brush?

Added in version 8.5.0

Callback method that can be used to set a Brush for a cluster, typically based on its Cluster.expectationStatus.

If the callback returns null or is not implemented, the engine applies its status-aware default: a red brush is drawn for clusters with ClusterExpectationStatus.DEVIATES, and no brush is drawn otherwise.

brushForAcceptedBarcode(view, trackedBarcode)
fun brushForAcceptedBarcode(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode): Brush?

Added in version 7.0.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 and that has been accepted through the popup configurable by BarcodeCountView.barcodeNotInListActionSettings. It is called when a new accepted barcode 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 onRecognizedBarcodeTapped() callback will not be performed.

brushForRejectedBarcode(view, trackedBarcode)
fun brushForRejectedBarcode(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode): Brush?

Added in version 7.0.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 and that has been rejected through the popup configurable by BarcodeCountView.barcodeNotInListActionSettings. It is called when a new accepted barcode 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 onRecognizedBarcodeTapped() callback will not be performed.

iconForRecognizedBarcode(view, trackedBarcode)
fun iconForRecognizedBarcode(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode): BarcodeCountIcon?

Added in version 8.5.0

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

Callback method that can be used to set a BarcodeCountIcon for a recognized barcode. When setting a BarcodeCountCaptureList to the mode, this icon will be used for recognized barcodes that are part of the target list. If the callback returns null, no icon is drawn for that barcode and tapping the barcode’s location has no effect.

iconForRecognizedBarcodeNotInList(view, trackedBarcode)
fun iconForRecognizedBarcodeNotInList(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode): BarcodeCountIcon?

Added in version 8.5.0

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

Callback method that can be used to set a BarcodeCountIcon for a recognized barcode that’s not part of the target BarcodeCountCaptureList. When BarcodeCountCaptureList is not set, this method will never be called. If the callback returns null, no icon is drawn for that barcode and tapping the barcode’s location has no effect.

iconForAcceptedBarcode(view, trackedBarcode)
fun iconForAcceptedBarcode(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode): BarcodeCountIcon?

Added in version 8.5.0

This method is called regardless of the view’s BarcodeCountView.style. Accepted barcodes are always rendered as BarcodeCountIcon instances.

Callback method that can be used to set a BarcodeCountIcon for an accepted barcode. If the callback returns null, no icon is drawn for that barcode and tapping the barcode’s location has no effect.

iconForRejectedBarcode(view, trackedBarcode)
fun iconForRejectedBarcode(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode): BarcodeCountIcon?

Added in version 8.5.0

This method is called regardless of the view’s BarcodeCountView.style. Rejected barcodes are always rendered as BarcodeCountIcon instances.

Callback method that can be used to set a BarcodeCountIcon for a rejected barcode. If the callback returns null, no icon is drawn for that barcode and tapping the barcode’s location has no effect.

onRecognizedBarcodeTapped(view, trackedBarcode)
fun onRecognizedBarcodeTapped(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode)

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

onFilteredBarcodeTapped(view, filteredBarcode)
fun onFilteredBarcodeTapped(view: BarcodeCountView,
        filteredBarcode: TrackedBarcode)

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

onRecognizedBarcodeNotInListTapped(view, trackedBarcode)
fun onRecognizedBarcodeNotInListTapped(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode)

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

onAcceptedBarcodeTapped(view, trackedBarcode)
fun onAcceptedBarcodeTapped(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode)

Added in version 7.0.0

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

onRejectedBarcodeTapped(view, trackedBarcode)
fun onRejectedBarcodeTapped(view: BarcodeCountView,
        trackedBarcode: TrackedBarcode)

Added in version 7.0.0

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

onClusterTapped(view, cluster)
fun onClusterTapped(view: BarcodeCountView,
        cluster: Cluster)

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

onCaptureListCompleted(view)
fun onCaptureListCompleted(view: BarcodeCountView)

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