@scandit/web-datacapture-core
Version:
Scandit Data Capture SDK for the Web
1 lines • 479 B
JavaScript
import {a}from'./chunk-IYYM2J7I.js';import {d}from'./chunk-QM37NXPY.js';var n=class e{constructor(t,o=d.Feedback.defaultVibrationPattern){this.type=t,this.pattern=o;let r=a.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};