Barcode Count Listener

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

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)
fun onObservationStarted(mode: BarcodeCount)

Added in version 6.14.0

Called when the listener starts observing the BarcodeCount instance.

onObservationStopped(mode)
fun onObservationStopped(mode: BarcodeCount)

Added in version 6.14.0

Called when the listener stops observing the BarcodeCount instance.

onScan(mode, session, data)
fun onScan(mode: BarcodeCount,
        session: BarcodeCountSession,
        data: FrameData)

Added in version 6.15.0

Invoked once scanning phase is over.

onSessionUpdated(mode, session, data)
fun onSessionUpdated(mode: BarcodeCount,
        session: BarcodeCountSession,
        data: FrameData)

Added in version 6.14.0

Invoked whenever the session has been updated.