Barkoder.Xamarin 1.1.9.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Barkoder.Xamarin --version 1.1.9.4
NuGet\Install-Package Barkoder.Xamarin -Version 1.1.9.4
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="Barkoder.Xamarin" Version="1.1.9.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Barkoder.Xamarin --version 1.1.9.4
#r "nuget: Barkoder.Xamarin, 1.1.9.4"
#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.
// Install Barkoder.Xamarin as a Cake Addin
#addin nuget:?package=Barkoder.Xamarin&version=1.1.9.4

// Install Barkoder.Xamarin as a Cake Tool
#tool nuget:?package=Barkoder.Xamarin&version=1.1.9.4

Barkoder.Xamarin

Installation Guide for barKoder's Xamarin Barcode Reader SDK

1. Add our Barkoder.Xamarin nuget package from source "nuget.org"

2. Import package

using Barkoder.Xamarin;

3. Camera permission

Our SDK requires camera permission to be granted in order to use scanning features. For Android, the permission is set in the manifest from the package. For iOS you need to specify camera permission in Info.plist file inside your project

<key>NSCameraUsageDescription</key>
<string>Camera permission</string>

4. Add BarkoderView

private BarkoderView BkdView;
4.1 Android
BkdView = FindViewById<BarkoderView>(Resource.Id.barkoderView);
4.2 iOS
BkdView = new BarkoderView();
var barkoderView = BkdView.View;

BkdView = new BarkoderView();
var BarkoderView = BkdView.View;
View.AddSubview(BarkoderView);

...

// TODO: Add constraints to BarkoderView
Both

// In order to perform scanning, config property need to be set before

BkdView.Config = new BarkoderConfig("LICENSE_KEY");
BkdView.Config.DecoderConfig = new DecoderConfig();

6. Optional barkoder settings

General barcode settings
private void SetBarkoderSettings()
{
    // These are optional settings, otherwise default values will be used
    BkdView.Config.ImageResultEnabled = true;
    BkdView.Config.LocationInImageResultEnabled = true;
    BkdView.Config.RegionOfInterestVisible = true;
}
6.1 Barcode types iOS
private void SetActiveBarcodeTypes()
{
    /// There is option to set multiple active barcodes at once as array
    BkdView.Config.DecoderConfig.SetEnabledDecoders(
        new NSNumber[] {
            (int)DecoderType.Qr,
            (int)DecoderType.Ean13
        }
    );

    // or configure them one by one
    BkdView.Config.DecoderConfig.UpcA.Enabled = true;
}
6.2 Barcode types Android
private void SetActiveBarcodeTypes()
{
    /// There is option to set multiple active barcodes at once as array
    BkdView.Config.DecoderConfig.SetEnabledDecoders(
        new BKD.DecoderType[] {
            BKD.DecoderType.Qr,
            BKD.DecoderType.Ean13
        }
    );

    // or configure them one by one
    BkdView.Config.DecoderConfig.UpcA.Enabled = true;
}

7. Ready to Scan Event

Inside MethodResultCallBackDecoderResultWithCompletion callback function the SDK is fully initialized and ready for configuration or to start the scanning process

7.1 Start scanning iOS
// Starting to scan
BkdView.StartScanning((result) =>
    // Fetching data
    // TODO: Getting results
);
7.2 Start scanning Android
// Starting to scan
BkdView.StartScanning(this);

// Fetching data
public void ScanningFinished(BKD.Result[] results, Bitmap[] thumbnails, Bitmap resultImage)
{
    // TODO: Getting results
}

8. Licensing

The SDK will scan barcodes even without a valid license; however all results will be randomly masked with (*) Asterisk characters. By using our software you are agreeing to our End User License Agreement. To obtain a valid license, one should create an account here and either get a trial license (to test the software out) or procure a production license that can be used within a live app.

Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid10.0 is compatible.  monoandroid11.0 is compatible.  monoandroid12.0 is compatible. 
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • MonoAndroid 10.0

    • No dependencies.
  • MonoAndroid 11.0

    • No dependencies.
  • MonoAndroid 12.0

    • No dependencies.
  • Xamarin.iOS 1.0

    • 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.3.0 82 5/27/2024
1.2.8 169 3/27/2024
1.2.7 232 3/6/2024
1.2.5.1 213 3/6/2024
1.2.5 402 1/23/2024
1.2.0 546 12/22/2023
1.1.9.5 517 12/22/2023
1.1.9.4 507 12/21/2023
1.1.9.3 517 12/20/2023
1.1.9.2 494 12/20/2023
1.1.9.1 480 12/20/2023
1.1.9 473 12/20/2023
1.1.8.5 478 12/19/2023
1.1.8.4 455 12/19/2023
1.1.8.3 476 12/19/2023
1.1.8.2 461 12/19/2023
1.1.8.1 510 12/18/2023
1.1.8 567 12/5/2023
1.1.7 488 11/30/2023

- Implemented barkoderSDK v1.2.4