Data Capture Context Listener#

Defined in namespace Scandit.Datacapture.Core

IDataCaptureContextListener#
interface IDataCaptureContextListener

Added in version 6.2.0

Interface for observing/listening to mode and status changes of a data capture context.

To observe changes of the data capture context, one or more IDataCaptureContextListener may be added. These listeners provide hooks into different parts of the data capture context.

OnFrameSourceChanged()#
void OnFrameSourceChanged(DataCaptureContext dataCaptureContext, IFrameSource frameSource)

Added in version 6.2.0

Invoked when the data capture context changed the frame source. Also invoked if the frame source is reset to null.

OnModeAdded()#
void OnModeAdded(DataCaptureContext dataCaptureContext, IDataCaptureMode mode)

Added in version 6.2.0

Called when a mode got added to the context.

OnModeRemoved()#
void OnModeRemoved(DataCaptureContext dataCaptureContext, IDataCaptureMode mode)

Added in version 6.2.0

Called when a mode got removed from the context.

OnObservationStarted()#
void OnObservationStarted(DataCaptureContext dataCaptureContext)

Added in version 6.2.0

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

OnObservationStopped()#
void OnObservationStopped(DataCaptureContext dataCaptureContext)

Added in version 6.2.0

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

OnStatusChanged()#
void OnStatusChanged(DataCaptureContext dataCaptureContext, ContextStatus status)

Added in version 6.2.0

Called when a context status changed.