Hi everybody,
I am trying to create MobileScanner-App with Flashlight/Torch on.
Below is the code that I am using:
var scanner = new ZXing.Mobile.MobileBarcodeScanner(); var scanoptions = new ZXing.Mobile.MobileBarcodeScanningOptions(); scanoptions.TryInverted = true; scanner.FlashButtonText = "Blitz"; if(!scanner.IsTorchOn) scanner.Torch(true); var result = await scanner.Scan(scanoptions); scanner.AutoFocus(); if (result != null) { ValidateScan(result.Text); scanHandler.PostDelayed(ResetScan, 2500); }
The code doesn't work. I have following Permissions added in the Manifest:
Any ideas to got this work?