GoogleVisionBarCodeScannerV 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package GoogleVisionBarCodeScannerV --version 1.0.3
                    
NuGet\Install-Package GoogleVisionBarCodeScannerV -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GoogleVisionBarCodeScannerV" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GoogleVisionBarCodeScannerV" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="GoogleVisionBarCodeScannerV" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GoogleVisionBarCodeScannerV --version 1.0.3
                    
#r "nuget: GoogleVisionBarCodeScannerV, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GoogleVisionBarCodeScannerV@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GoogleVisionBarCodeScannerV&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=GoogleVisionBarCodeScannerV&version=1.0.3
                    
Install as a Cake Tool

BarcodeScanner.XF

BarcodeScanner using GoogleVision API for Xamarin Form Works on Android and iOS 10+

For Android, it use Xamarin.GooglePlayServices.Vision For iOS, it use GoogleMobileVision under MLKit library

Please feel free to improve my source code.
Pending to fix

   CameraView is not shown in Android 10 device

Update on 4.2.0.815420

   CameraView size can be adjusted in Xamarin Forms UserControl now.
   IsTorchOn method merged

Installation

   Install Nuget package to Forms, Android and iOS project

Install-Package BarcodeScanner.XF

Android setup

   Manifest.xml

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.CAMERA" />

   Init the library in MainActivity.cs

 base.OnCreate(savedInstanceState);
...
 GoogleVisionBarCodeScanner.Droid.RendererInitializer.Init();
...
 global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
 LoadApplication(new App());

iOS Setup

   Edit Info.plist, add camera rights

<key>NSCameraUsageDescription</key>
<string>Require to use camera</string>

   Create an project in Google Firebase Console, download GoogleService-Info.plist https://console.firebase.google.com/

   Put GoogleService-Info.plist into Resources folder of iOS project, set Build Action as BundleResource

   Init project and firebase on AppDelegate.cs

           global::Xamarin.Forms.Forms.Init();
           LoadApplication(new App());
           ....
           GoogleVisionBarCodeScanner.iOS.Initializer.Init();
           Firebase.Core.App.Configure();
           ....
           return base.FinishedLaunching(app, options);

Usage

   Set support barcode format (Default is all), call it before you start to init CameraView

GoogleVisionBarCodeScanner.Methods.SetSupportBarcodeFormat(BarcodeFormats.QRCode);

   It is all about the camera view

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.15 895 12/10/2019
1.0.14 635 12/10/2019
1.0.13 599 12/10/2019
1.0.12 603 12/10/2019
1.0.11 643 12/10/2019
1.0.10 626 12/10/2019
1.0.9 618 12/10/2019
1.0.7 624 12/9/2019
1.0.6 610 12/9/2019
1.0.5 602 12/9/2019
1.0.4 606 12/9/2019
1.0.3 653 12/9/2019
1.0.2 590 12/6/2019
1.0.1 602 12/6/2019
1.0.0 604 12/6/2019