Barcode Sequence Listener

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

BarcodeSequenceListener
interface BarcodeSequenceListener

Added in version 8.0.0

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

onSessionUpdated(barcodeSequence, session, frameData)
void onSessionUpdated(@NonNull BarcodeSequence barcodeSequence,
        @NonNull BarcodeSequenceSession session,
        @NonNull FrameData frameData)

Added in version 8.0.0

Invoked on each frame. The session parameter contains the currently tracked barcodes.

This method is invoked from a recognition internal thread. To perform UI work, you must dispatch to the main thread first.

onObservationStarted(barcodeSequence)
void onObservationStarted(@NonNull BarcodeSequence barcodeSequence)

Added in version 8.0.0

Called when the listener starts observing the BarcodeSequence session.

onObservationStopped(barcodeSequence)
void onObservationStopped(@NonNull BarcodeSequence barcodeSequence)

Added in version 8.0.0

Called when the listener stops observing the BarcodeSequence session.