Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Close button in barcode scanner

$
0
0

@yoke92 wrote:

Hi, i am trying to make a simple bar code scanner app, everything works fine but i need a close or back button on to the camera view, could someone help me
I tried something like this but this dose’nt work well as the app gets restarted again on pressing back button

this.platform.registerBackButtonAction(() => {
console.log(“backPressed 1”);
(window.document.querySelector(‘ion-app’) as HTMLElement).classList.remove(‘cameraView’);
},1);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>