Frame Source Listener

Defined in package com.scandit.datacapture.core.source

FrameSourceListener
interface FrameSourceListener

Added in version 6.0.0

onStateChanged(frameSource, newState)
fun onStateChanged(frameSource: FrameSource,
        newState: FrameSourceState)

Added in version 6.0.0

onObservationStarted(frameSource)
fun onObservationStarted(frameSource: FrameSource)

Added in version 6.0.0

onObservationStopped(frameSource)
fun onObservationStopped(frameSource: FrameSource)

Added in version 6.0.0

onFrameOutput(frameSource, frame)
fun onFrameOutput(frameSource: FrameSource,
        frame: FrameData)

Added in version 6.0.0

Event that is emitted whenever a new frame is available. Consumers of this frame source can listen to this event to receive the frames produced by the frame source. The frames are reference counted, if the consumers require access to the frames past the lifetime of the callback, they need to increment the reference count of the frame by one and release it once they are done processing it.