@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 2.52 kB
JavaScript
var e=class e{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,n){let r=new e;return r.barcodeFind=t,r.view=n,await t.workerCommand(`barcodeFindAddBasicOverlay`,{}),await r.notify(),r}async setShouldShowScanAreaGuides(e){return this.shouldShowScanAreaGuides=e,this.notify()}getShouldShowScanAreaGuides(){return this.shouldShowScanAreaGuides}async setUserGuidanceEnabled(e){return this.userGuidanceEnabled=e,this.notify()}async setTextForAllItemsFoundSuccessfullyHint(e){return this.textForAllItemsFoundSuccessfullyHint=e,this.notify()}async setTextForPointAtBarcodesToSearchHint(e){return this.textForPointAtBarcodesToSearchHint=e,this.notify()}async setTextForMoveCloserToBarcodesHint(e){return this.textForMoveCloserToBarcodesHint=e,this.notify()}async setTextForTapShutterToPauseScreenHint(e){return this.textForTapShutterToPauseScreenHint=e,this.notify()}async setTextForTapShutterToResumeScreenHint(e){return this.textForTapShutterToResumeScreenHint=e,this.notify()}async setTextForItemListUpdatedHint(e){return this.textForItemListUpdatedHint=e,this.notify()}async setTextForItemListUpdatedWhenPausedHint(e){return this.textForItemListUpdatedWhenPausedHint=e,this.notify()}async setShouldShowHint(e){return this.shouldShowHint=e,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{e as BarcodeFindBasicOverlay};