Posts

Showing posts with the label Arc.BarCodes

Barcode Scanner Using Xamarin.Forms

Image
For creating a Barcode Scanner, I will use the NuGet package  Arc.BarCodes , a cross-platform creator built on top of ZXing.Net.Mobile to allow for easy cross-platform access from Shared/PCL core libraries. Now we can set some permissions for Android and Windows to get access to the camera. This is for taking the clear picture of the barcode that we want to scan. For Android open the  AndroidManifest.xml  and select  CAMERA  from the  Required Permissions . Now open  WMAppManifest.xml  for setting permissions to Windows Phone then select ID_CAP_ISV_CAMERA  from  Capabilities . Now we want to initialize the corresponding NuGet package in each platform-specific startup classes. For example, AppDelegate.cs for iOS, MainActivity.cs for Android and MainPage.xaml.cs for Windows Phone by calling  global::Acr.BarCodes.BarCodes.Init();  before calling  LoadApplication();  Now create a button on the page for the...