Barcode Count Listener

Defined in package com.scandit.datacapture.barcode.count.capture

BarcodeCountListener
interface BarcodeCountListener

Added in version 6.14.0

The BarcodeCount listener is the main way for hooking into BarcodeCount. It provides a callback that is invoked when the state of tracked barcodes changes.

onObservationStarted(mode)
void onObservationStarted(@NonNull BarcodeCount mode)

Added in version 6.14.0

Called when the listener starts observing the BarcodeCount instance.

onObservationStopped(mode)
void onObservationStopped(@NonNull BarcodeCount mode)

Added in version 6.14.0

Called when the listener stops observing the BarcodeCount instance.

onScan(mode, session, data)
void onScan(@NonNull BarcodeCount mode,
        @NonNull BarcodeCountSession session,
        @NonNull FrameData data)

Added in version 6.15.0

Invoked once scanning phase is over.