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)
@Nullable Brush brushForRecognizedBarcode(@NonNull BarcodeCountView view,
        @NonNull TrackedBarcode trackedBarcode)

Added in version 6.15.0

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.

brushForUnrecognizedBarcode(view, trackedBarcode)
@Nullable Brush brushForUnrecognizedBarcode(
        @NonNull BarcodeCountView view,
        @NonNull TrackedBarcode trackedBarcode)

Added in version 6.15.0

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 onUnrecognizedBarcodeTapped() callback will not be performed.

brushForRecognizedBarcodeNotInList(view, trackedBarcode)
@Nullable Brush brushForRecognizedBarcodeNotInList(
        @NonNull BarcodeCountView view,
        @NonNull TrackedBarcode trackedBarcode)

Added in version 6.15.0

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

onRecognizedBarcodeTapped(view, trackedBarcode)
void onRecognizedBarcodeTapped(@NonNull BarcodeCountView view,
        @NonNull 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.

onUnrecognizedBarcodeTapped(view, trackedBarcode)
void onUnrecognizedBarcodeTapped(@NonNull BarcodeCountView view,
        @NonNull TrackedBarcode trackedBarcode)

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

onFilteredBarcodeTapped(view, filteredBarcode)
void onFilteredBarcodeTapped(@NonNull BarcodeCountView view,
        @NonNull TrackedBarcode filteredBarcode)

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)
void onRecognizedBarcodeNotInListTapped(@NonNull BarcodeCountView view,
        @NonNull 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.