Data Capture Context Frame Listener#

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

DataCaptureContextFrameListener#
interface DataCaptureContextFrameListener

Added in version 6.0.0

Interface for observing/listening to frame processing related events of a data capture context.

To observe changes of the data capture context’s frame processing, one or more DataCaptureContextFrameListener may be added. These listeners provide hooks into different parts of the data capture context.

Frame processing only happens if at least one DataCaptureMode is added.

onObservationStarted(dataCaptureContext)#
void onObservationStarted(@NonNull DataCaptureContext dataCaptureContext)

Added in version 6.0.0

Called when the listener has been added to the data capture context and is from now on receiving events.

onObservationStopped(dataCaptureContext)#
void onObservationStopped(@NonNull DataCaptureContext dataCaptureContext)

Added in version 6.0.0

Called when the listener has been removed from the data capture context and is no longer receiving events.

onFrameProcessingStarted(dataCaptureContext, frame)#
void onFrameProcessingStarted(@NonNull DataCaptureContext dataCaptureContext,
        @NonNull FrameData frame)

Added in version 6.0.0

Called when a frame will be processed.

onFrameProcessingFinished(dataCaptureContext, frame)#
void onFrameProcessingFinished(@NonNull DataCaptureContext dataCaptureContext,
        @NonNull FrameData frame)

Added in version 6.0.0

Called when a frame has been processed.