Data Capture Context Listener#

Defined under the namespace Scandit.Datacapture.Core

interface DataCaptureContextListener

Added in version 6.1.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.

didStartObservingContext?(context: DataCaptureContext): void

Added in version 6.3.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.1.0

Called when a context status changed.