ID Capture

Defined under the namespace Scandit.Datacapture.Id

IdCapture
class IdCapture : DataCaptureMode

Added in version 6.8.0

constructor(settings)
constructor(settings: IdCaptureSettings)

Added in version 7.6.0

Constructs a new IdCapture with the provided settings.

isEnabled
isEnabled: boolean

Added in version 6.8.0

Implemented from DataCaptureMode. See DataCaptureMode.isEnabled.

addListener(listener)
addListener(listener: IdCaptureListener): Promise<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): Promise<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.

feedback
feedback: IdCaptureFeedback

Added in version 6.21.0

Instance of IdCaptureFeedback, determines what feedback (vibration, sound) should be emitted during the ID Capture process.

createRecommendedCameraSettings()
static createRecommendedCameraSettings(): CameraSettings

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

applySettings(settings)
applySettings(settings: IdCaptureSettings): Promise<void>

Added in version 6.21.0

Asynchronously applies the new settings to the ID Capture. If the scanner is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the scanner is currently not running, the task will complete as soon as the settings have been stored and won’t wait until the next frame is going to be processed.

externalTransactionId
externalTransactionId: string | null

Added in version 8.0.0

Sets or retrieves an external transaction ID. This ID is attached to ID scan analytics data, to be linkable to customer transactions. Set to null to clear the transaction ID.