Barcode Sequence Listener
Defined in package com.scandit.datacapture.barcode.sequence.capture
- BarcodeSequenceListener
interface BarcodeSequenceListenerAdded 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)
fun onSessionUpdated(barcodeSequence: BarcodeSequence, session: BarcodeSequenceSession, 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)
fun onObservationStarted(barcodeSequence: BarcodeSequence)
Added in version 8.0.0
Called when the listener starts observing the BarcodeSequence session.
- onObservationStopped(barcodeSequence)
fun onObservationStopped(barcodeSequence: BarcodeSequence)
Added in version 8.0.0
Called when the listener stops observing the BarcodeSequence session.