I am using your API in my Windows 10 UWP project and it works as expected for scanning barcodes. I am just facing one issue. It is mentioned that "press back to Cancel" if the user does that then the app is terminated instead of Navigating back to the page from where it is called.
Can you please help me to solve this issue?
My Code
MobileBarcodeScanner _scanner = new MobileBarcodeScanner(this.Dispatcher); _scanner.UseCustomOverlay = false; _scanner.TopText = "Hold camera up to QR code"; _scanner.BottomText = "Camera will automatically scan QR code\r\n\rPress the 'Back' button to cancel"; var result = await _scanner.Scan(); if (result != null) ProcessScanResult(result);
I am using your API in my Windows 10 UWP project and it works as expected for scanning barcodes. I am just facing one issue. It is mentioned that "press back to Cancel" if the user does that then the app is terminated instead of Navigating back to the page from where it is called.
Can you please help me to solve this issue?
My Code
MobileBarcodeScanner _scanner = new MobileBarcodeScanner(this.Dispatcher); _scanner.UseCustomOverlay = false; _scanner.TopText = "Hold camera up to QR code"; _scanner.BottomText = "Camera will automatically scan QR code\r\n\rPress the 'Back' button to cancel"; var result = await _scanner.Scan(); if (result != null) ProcessScanResult(result);