Frame Source Listener#
Defined in package com.scandit.datacapture.core.source
-
FrameSourceListener
# interface FrameSourceListener
Added in version 6.0.0
-
onStateChanged(source, newState)
# void
onStateChanged
(@NonNull FrameSource source, FrameSourceState newState)Added in version 6.0.0
-
onObservationStarted(source)
# void
onObservationStarted
(@NonNull FrameSource source)Added in version 6.0.0
-
onObservationStopped(source)
# void
onObservationStopped
(@NonNull FrameSource source)Added in version 6.0.0
-
onFrameOutput(source, frame)
# void
onFrameOutput
(@NonNull FrameSource source, @NonNull 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.
-