Data Capture Context Listener
Defined under the namespace Scandit.Datacapture.Core
- DataCaptureContextListener
interface DataCaptureContextListener
Added in version 6.13.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 DataCaptureContextListener may be added. These listeners provide hooks into different parts of the data capture context.
- didChangeFrameSource(context, frameSource)
didChangeFrameSource?: (context: DataCaptureContext, frameSource: FrameSource | null) =>
void
Added in version 6.16.0
Invoked when the data capture context changed the frame source. Also invoked if the frame source is reset to null.
- didStartObservingContext(context)
didStartObservingContext?: (context: DataCaptureContext) =>
void
Added in version 6.13.0
Called when the listener has been added to the data capture context and is from now on receiving events.
- didChangeStatus(context, contextStatus)
didChangeStatus?: (context: DataCaptureContext, contextStatus: ContextStatus) =>
void
Added in version 6.13.0
Called when a context status changed.