We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to capture and scan the Barcode in Xamarin.Forms.

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.

 

 

 

 

Getting Started

 

ZXing.Net Mobile is available for Xamarin applications as both a component and a NuGet package 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,

 

Validating Output

 

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,

http://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion_Barcode_Scanner68333879

Article ID: Published Date: Last Revised Date: Platform: Control:
7662 04/11/2017 05/16/2017 Xamarin.Forms PDF
Tags:
pdf
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.