UNPKG

scandit-web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

4 lines (2 loc) 2.5 kB
var i=class r{constructor(){this.type="barcodeFindBasicOverlay";this.shouldShowScanAreaGuides=!1;this.userGuidanceEnabled=!0;this.textForAllItemsFoundSuccessfullyHint=null;this.textForPointAtBarcodesToSearchHint=null;this.textForMoveCloserToBarcodesHint=null;this.textForTapShutterToPauseScreenHint=null;this.textForTapShutterToResumeScreenHint=null;this.textForItemListUpdatedHint=null;this.textForItemListUpdatedWhenPausedHint=null;this.shouldShowHint=!0;}static async withBarcodeFind(t,o){let e=new r;return e.barcodeFind=t,e.view=o,await t.workerCommand("barcodeFindAddBasicOverlay",{}),await e.notify(),e}async setShouldShowScanAreaGuides(t){return this.shouldShowScanAreaGuides=t,this.notify()}getShouldShowScanAreaGuides(){return this.shouldShowScanAreaGuides}async setUserGuidanceEnabled(t){return this.userGuidanceEnabled=t,this.notify()}async setTextForAllItemsFoundSuccessfullyHint(t){return this.textForAllItemsFoundSuccessfullyHint=t,this.notify()}async setTextForPointAtBarcodesToSearchHint(t){return this.textForPointAtBarcodesToSearchHint=t,this.notify()}async setTextForMoveCloserToBarcodesHint(t){return this.textForMoveCloserToBarcodesHint=t,this.notify()}async setTextForTapShutterToPauseScreenHint(t){return this.textForTapShutterToPauseScreenHint=t,this.notify()}async setTextForTapShutterToResumeScreenHint(t){return this.textForTapShutterToResumeScreenHint=t,this.notify()}async setTextForItemListUpdatedHint(t){return this.textForItemListUpdatedHint=t,this.notify()}async setTextForItemListUpdatedWhenPausedHint(t){return this.textForItemListUpdatedWhenPausedHint=t,this.notify()}async setShouldShowHint(t){return this.shouldShowHint=t,this.notify()}toJSONObject(){return {type:this.type,shouldShowScanAreaGuides:this.shouldShowScanAreaGuides,shouldShowHint:this.shouldShowHint,userGuidanceEnabled:this.userGuidanceEnabled,textForAllItemsFoundSuccessfullyHint:this.textForAllItemsFoundSuccessfullyHint,textForPointAtBarcodesToSearchHint:this.textForPointAtBarcodesToSearchHint,textForMoveCloserToBarcodesHint:this.textForMoveCloserToBarcodesHint,textForTapShutterToPauseScreenHint:this.textForTapShutterToPauseScreenHint,textForTapShutterToResumeScreenHint:this.textForTapShutterToResumeScreenHint,textForItemListUpdatedHint:this.textForItemListUpdatedHint,textForItemListUpdatedWhenPausedHint:this.textForItemListUpdatedWhenPausedHint}}async notify(){return this.barcodeFind.workerCommand("barcodeFindUpdateBasicOverlay",{jsonOverlay:this.toJSONObject()})}}; export { i as a };