ID Capture

Defined under the namespace Scandit.Datacapture.Id

IdCapture
class IdCapture : DataCaptureMode

Added in version 6.8.0

forContext(context, settings)
static forContext(context: DataCaptureContext | null,
        settings: IdCaptureSettings): IdCapture

Added in version 6.8.0

Constructs a new IdCapture with the provided settings. When dataCaptureContext is not null, the mode is automatically added to it.

isEnabled
isEnabled: boolean

Added in version 6.8.0

Implemented from DataCaptureMode. See DataCaptureMode.isEnabled.

addListener(listener)
addListener(listener: IdCaptureListener): void

Added in version 6.8.0

Adds the listener to this id capture instance.

In case the same listener is already observing this instance, calling this method will not add the listener again.

removeListener(listener)
removeListener(listener: IdCaptureListener): void

Added in version 6.8.0

Removes listener from this id capture instance.

In case the listener is not currently observing this instance, calling this method has no effect.

context
get context(): DataCaptureContext | null

Added in version 6.8.0

Implemented from DataCaptureMode. See DataCaptureMode.context.

recommendedCameraSettings()
static get recommendedCameraSettings(): CameraSettings

Added in version 6.8.0

Creates the recommended camera settings to use with this mode.

reset()
reset(): Promise<void>

Added in version 6.8.0

Resets the ongoing scanning process. This method can be used to abandon scanning the back side of a document.