ZXing (zebra crossing) is an open-source tool to decode barcodes. It allows users to scan most of the 1D and 2D barcodes, including QR and DataMatrix Barcodes.
ZXing.Net Mobile is available for Xamarin applications as both a and a that can be installed in iOS, Android and Windows projects. Need to add the package or Nuget to all of the projects in Xamarin applications to get started.
Please find the following steps:
1. Right click the project and select Manage NuGet Packages.
2. Browse packages from source(“https://www.nuget.org/api/v2”) and add the ZXing.Net.Mobile packages in all of the projects in Xamarin applications.
Create a Scanner Page
ZXing.Net.Mobile is a C#/.NET library based on the open source Barcode Library: ZXing (Zebra Crossing). It works with Xamarin.iOS, Xamarin.Android and Windows Universal. The goal of ZXing.Net.Mobile is to make scanning barcodes in our own Xamarin application.
Create a new ZXingScannerPage and then push the page onto the navigation stack using below code snippet,
The text and type of the Barcode can be displayed when the OnScanResult event is fired using below code snippet,
Please find the sample from the below link,
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|