Id Capture Feedback

Defined under the namespace Scandit.Datacapture.Id

IdCaptureFeedback
class IdCaptureFeedback

Added in version 6.19.0

Determines what feedback (vibration, sound) should be emitted during the ID Capture process.

The feedback is specified for each IdCapture instance separately and can be changed through the IdCapture.feedback property by either modifying an existing instance of this class, or by assigning a new one.

Some browsers do not support emitting vibration (see current support). On such browsers only the sound is played - using vibration has no effect.

defaultFeedback()
static get defaultFeedback(): IdCaptureFeedback

Added in version 6.19.0

Returns an id capture feedback with default configuration:

  • default beep sound is loaded,

  • beeping for the id captured event is enabled,

  • vibration for the id captured event is enabled,

  • beeping for the id rejected event is disabled,

  • vibration for the id rejected event is disabled,

  • beeping for the id capture timeout event is disabled,

  • vibration for the id capture timeout event is disabled.

defaultSuccessSound()
static get defaultSuccessSound(): Sound

Added in version 6.19.0

Returns the default success sound

defaultFailureSound()
static get defaultFailureSound(): Sound

Added in version 6.19.0

Returns the default failure sound

idCaptured
idCaptured: Feedback

Added in version 6.19.0

A feedback that is emitted when IdCaptureListener.didCaptureId() event is triggered.

idRejected
idRejected: Feedback

Added in version 6.19.0

A feedback that is emitted when IdCaptureListener.didRejectId() event is triggered.

idCaptureTimeout
idCaptureTimeout: Feedback

Added in version 6.19.0

A feedback that is emitted when IdCaptureListener.didTimedOut() event is triggered.