Interface FeedbackConfiguration

User feedback configuration

interface FeedbackConfiguration {
    audio?: boolean | AudioFeedbackConfiguration;
    vibration?: boolean;
}

Properties

Properties

audio?: boolean | AudioFeedbackConfiguration

Toggle audible beep upon successful scan.

Remarks

Uses the WebAudio API to emit a "cash register"-like beep. Beeping is done on a best-effort basis and should not be relied upon. If the browser does not support the WebAudio API, beeping will not work, and no error will be thrown.

Default Value

true
vibration?: boolean

Toggle vibration upon successful scan, if supported by device.

Default Value

true