Hi i need open scanner zxing by pressing a button, can anyone help me?
THANKS
Hi i need open scanner zxing by pressing a button, can anyone help me?
THANKS
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kip HackmanPosted Jun 30, 2023, 2:39 PM
For your use-case, to live capture barcodes from a mobile device using Xamarin, you can look into using the LEADTOOLS Barcode SDK and Xamarin Camera Control.
https://www.leadtools.com/sdk/products/barcode-pro
https://www.leadtools.com/sdk/xamarin/camera
You can leverage the CameraView class which will allow you to access a mobile device's camera. You can access the frames received from the camera using the FrameReceived event, then take that frame and detect/extract barcodes codes using the BarcodeReader class.
For an example see the code below:
Riccardo DariaPosted May 25, 2023, 8:01 AM
Thanks, but this code is underlined:
MobileBarcodeScanner
We need something else, RIGHT?
Mohamed Azarudeen ZPosted May 25, 2023, 6:59 AM
Add ZXing.Net.Mobile NuGet package to your Xamarin.Forms project. Right-click on your solution, select "Manage NuGet Packages," search for "ZXing.Net.Mobile," and install it.
In your Xamarin.Forms project, create a new Content Page or use an existing one where you want to include the barcode scanner.
Add the necessary namespaces at the top of your code-behind file:
implement the click event handler for the button: