GoogleVisionBarCodeScannerV 1.0.3
See the version list below for details.
dotnet add package GoogleVisionBarCodeScannerV --version 1.0.3
NuGet\Install-Package GoogleVisionBarCodeScannerV -Version 1.0.3
<PackageReference Include="GoogleVisionBarCodeScannerV" Version="1.0.3" />
paket add GoogleVisionBarCodeScannerV --version 1.0.3
#r "nuget: GoogleVisionBarCodeScannerV, 1.0.3"
// Install GoogleVisionBarCodeScannerV as a Cake Addin #addin nuget:?package=GoogleVisionBarCodeScannerV&version=1.0.3 // Install GoogleVisionBarCodeScannerV as a Cake Tool #tool nuget:?package=GoogleVisionBarCodeScannerV&version=1.0.3
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
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 | 761 | 12/10/2019 |
1.0.14 | 524 | 12/10/2019 |
1.0.13 | 488 | 12/10/2019 |
1.0.12 | 495 | 12/10/2019 |
1.0.11 | 531 | 12/10/2019 |
1.0.10 | 515 | 12/10/2019 |
1.0.9 | 509 | 12/10/2019 |
1.0.7 | 515 | 12/9/2019 |
1.0.6 | 503 | 12/9/2019 |
1.0.5 | 493 | 12/9/2019 |
1.0.4 | 495 | 12/9/2019 |
1.0.3 | 541 | 12/9/2019 |
1.0.2 | 481 | 12/6/2019 |
1.0.1 | 493 | 12/6/2019 |
1.0.0 | 492 | 12/6/2019 |