Barcode Count Listener
Defined in package com.scandit.datacapture.barcode.count
- BarcodeCountListener
interface BarcodeCountListenerAdded in version 8.6.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(barcodeCount)
fun onObservationStarted(barcodeCount: BarcodeCount)
Added in version 8.6.0
Called when the listener starts observing the BarcodeCount instance.
- onObservationStopped(barcodeCount)
fun onObservationStopped(barcodeCount: BarcodeCount)
Added in version 8.6.0
Called when the listener stops observing the BarcodeCount instance.
- onScan(barcodeCount, session, frameData)
fun onScan(barcodeCount: BarcodeCount, session: BarcodeCountSession, frameData: FrameData)
Added in version 8.6.0
Invoked once scanning phase is over.
- onSessionUpdated(barcodeCount, session, frameData)
fun onSessionUpdated(barcodeCount: BarcodeCount, session: BarcodeCountSession, frameData: FrameData)
Added in version 8.6.0
Invoked whenever the session has been updated.