@scandit/web-datacapture-core
Version:
Scandit Data Capture SDK for the Web
1 lines • 470 B
JavaScript
import {a}from'./chunk-R6SUMD5F.js';import {b}from'./chunk-VBUDN72N.js';var n=class e{constructor(t,o=a.defaultVibrationPattern){this.type=t,this.pattern=o;let r=b.getSupportedVibrationMethod();r&&(this._vibrate=r.bind(navigator));}static get defaultVibration(){return new e("default")}static withPattern(t){return new e("default",t)}toJSONObject(){return {type:this.type}}vibrate(){var t;return (t=this._vibrate)==null?void 0:t.call(this,this.pattern)}};export{n as a};