Frame Source Listener

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

FrameSourceListener
interface FrameSourceListener

Added in version 6.0.0

onStateChanged(frameSource, newState)
void onStateChanged(FrameSource frameSource,
        FrameSourceState newState)

Added in version 6.0.0

onObservationStarted(frameSource)
void onObservationStarted(FrameSource frameSource)

Added in version 6.0.0

onObservationStopped(frameSource)
void onObservationStopped(FrameSource frameSource)

Added in version 6.0.0

onFrameOutput(frameSource, frame)
void onFrameOutput(FrameSource frameSource,
        FrameData frame)

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.