@pixelverse/strichjs-sdk 1.7.3 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/strich-noesm.js +18 -17
- package/dist/strich.d.ts +13 -2
- package/dist/strich.js +18 -17
- package/package.json +1 -1
package/dist/strich.d.ts
CHANGED
|
@@ -262,8 +262,8 @@ export declare interface FeedbackConfiguration {
|
|
|
262
262
|
*
|
|
263
263
|
* @remarks
|
|
264
264
|
* Uses the WebAudio API to emit a "cash register"-like beep. Beeping is done on a best-effort
|
|
265
|
-
* basis and should not be relied upon. If the browser does not support the WebAudio API,
|
|
266
|
-
*
|
|
265
|
+
* basis and should not be relied upon. If the browser does not support the WebAudio API, and in iOS
|
|
266
|
+
* PWAs, an HTML5 audio element will be used instead.
|
|
267
267
|
*
|
|
268
268
|
* @defaultValue true
|
|
269
269
|
*/
|
|
@@ -779,6 +779,17 @@ export declare class StrichSDK {
|
|
|
779
779
|
* @param lang - The lower-case ISO language code, e.g. 'en'
|
|
780
780
|
*/
|
|
781
781
|
static setLanguage(lang: string): void;
|
|
782
|
+
/**
|
|
783
|
+
* Override the preferred audio implementation used to emit audible feedback (beeps). By default, the SDK will
|
|
784
|
+
* automatically select an appropriate implementation.
|
|
785
|
+
*
|
|
786
|
+
* @remarks
|
|
787
|
+
* Using this method should only be necessary in specialized environments.
|
|
788
|
+
* Selecting an unsupported implementation will still fall back to an available one.
|
|
789
|
+
*
|
|
790
|
+
* @param impl - The audio implementation to use, either 'webaudio' for the WebAudio API, or 'html5' for an HTML5 Audio element
|
|
791
|
+
*/
|
|
792
|
+
static setAudioImpl(impl: 'webaudio' | 'html5'): void;
|
|
782
793
|
/**
|
|
783
794
|
* Check if the browser has access to a camera device, which is required for scanning barcodes.
|
|
784
795
|
*
|