Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ZXing Barcode Scanner does not activate Flash LED

$
0
0

I have the following Code to Scan Barcodes with ZXing:

           mscanner.UseCustomOverlay = false;

            MobileBarcodeScanningOptions scanoptions = new MobileBarcodeScanningOptions();

            scanoptions.TryInverted = true;
            //mscanner.ToggleTorch();

            mscanner.TopText = "Barcode Scanner";
            mscanner.Torch(true);
            mscanner.FlashButtonText = "Blitz";


            var result = await mscanner.Scan(scanoptions);

            DisplayResult(result);

I tried to activate the LED Flash of the Android Device with ToggleTorch() and with Torch(true). But the Flash Light does not turn on.

How can i activate the Flashlight in ZXing?

The required permissions are Camera and Flashlight.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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