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, and in iOS PWAs, an HTML5 audio element will be used instead.

Default Value

true
vibration?: boolean

Toggle vibration upon successful scan, if supported by device.

Default Value

true