Xamarin & Xamarin.Forms Barcode Scanner SDK

Mobile Data Capture for Xamarin & Xamarin.Forms Apps

Key Requirements

Mobile Platform

  • Android 5.0 (API Level 21) and higher
  • iOS 13 or higher‍

Devices

  • Rear-facing camera with autofocus

Architecture

  • Android: armeabi-v7, arm64-v8a, x86, x86_64
  • iOS: arm64, x86_64

Distribution Channels

  • NuGet Package (nuget.org)
  • Direct Download

Development Tools

  • Latest version of Microsoft Visual Studio

Specific Notes iOS

  • macOS with the latest Xcode and Command Line Tools

Why Scanbot SDK?

Fast & reliable

The Scanbot Barcode Scanner scans barcodes fast and reliably, creating a flawless scanning experience

iOS Barcode Scanner SDK

Create a prototype in hours

You can create a first prototype in just a few hours with our detailed documentation and example projects

Developer support via Slack/Teams

Our developers will help you solve any problems you may encounter

Scanbot SDK Offline usage

100% offline

The Scanbot SDK uses on-device intelligence only, making the solution GDPR- & CCPA-/CAAP-compliant

Easily integrate the Xamarin Barcode Scanner into your mobile app

Adding the Xamarin Barcode Scanner SDK to your app takes just a few hours thanks to adjustable ready-to-use user interface components that include user guidance for a frictionless barcode scanning process. Enable your app to extract information from all popular 1D and 2D barcode formats with GDPR- and CCPA-compliant software components.

Reliable detection within 0.2 seconds, even with damaged codes, poor lighting, or bad angles. Create a new user experience for highest customer and employee satisfaction. Scanning barcodes has never been this easy.

Looking for a cost-effective solution? With Xamarin QR Code Scanner you can scan QR codes quickly and accurately, even with up to 30% damage.

A reliable Barcode Scanner SDK covering a wide range of codes

Whether your app is used by your employees or your customers: You want it to work quickly and reliably. That’s why our Barcode Scanner SDK uses computer vision algorithms and machine learning models to guarantee lightning-fast and accurate barcode detection.

Its coverage of barcode symbologies is one of the widest out there. With the Scanbot Barcode Scanner SDK, you can solve business problems in any industry, automate workflows, and optimize your internal processes.

Learn more about our 1D Barcode Scanner Learn more about our 2D Barcode Scanner

Getting Started with the Scanbot Xamarin and Xamarin.Forms Barcode Scanners

The Scanbot Xamarin and Xamarin.Forms Barcode Scanner SDKs are available as NuGet packages. You can easily integrate the Xamarin and Xamarin.Forms Barcode Scanner into your app.

You can start integrating the Scanbot Barcode Scanner SDK for cross-platform app development with Xamarin.Forms for both Android and iOS as below:

var configuration = new BarcodeScannerConfiguration();
BarcodeResultBundle result = await 
SBSDK.Scanner.Open(configuration);

You can configure the 1D and 2D barcode types that you want to recognize:

configuration.AcceptedFormats = new List
{
	    BarcodeFormat.Aztec,
	    BarcodeFormat.Codabar,
	    BarcodeFormat.Code128,
	    BarcodeFormat.Code39,
	    BarcodeFormat.Code93,
	    BarcodeFormat.DataMatrix,
	    BarcodeFormat.Ean13,
	    BarcodeFormat.Ean8,
	    BarcodeFormat.Itf,
	    BarcodeFormat.Pdf417,
	    BarcodeFormat.QrCode,
	    BarcodeFormat.Rss14,
	    BarcodeFormat.RssExpanded,
	    BarcodeFormat.Unknown,
	    BarcodeFormat.UpcA,
	    BarcodeFormat.UpcE,
	    BarcodeFormat.MsiPlessey
};

Also, you can customize the UI style of your Xamarin and Xamarin.Forms Barcode Scanners like below:

configuration.FinderWidth = 300;
configuration.FinderHeight = 200;
configuration.FlashEnabled = true;
configuration.TopBarBackgroundColor = Color.Accent;
configuration.FinderTextHint = "Custom hint text...";
// further configurations...

Getting Started with the Scanbot Xamarin Barcode Scanner

You can start integrating the Scanbot Barcode Scanner SDK for native app development with Xamarin for both Android and iOS as below:

Xamarin Android:

var configuration = new BarcodeScannerConfiguration();
var intent = BarcodeScannerActivity.NewIntent(this, configuration);
StartActivityForResult(intent, REQUEST_CODE);

Xamarin iOS:

var configuration = SBSDKUIBarcodeScannerConfiguration.DefaultConfiguration;
BarcodeResultReceiver receiver = new BarcodeResultReceiver();
SBSDKUIBarcodeScannerViewController.PresentOn(this, acceptedBarcodeTypes, configuration, receiver);

You can check our Xamarin documentation for further information on customization and configuration.

Complete example projects

To get off to a flying start, check out our GitHub repository. There, you can find full example projects on Xamarin and Xamarin.Forms

They demonstrate the integration of all API methods of the Scanbot Xamarin & Xamarin.Forms Barcode Scanner SDKs, such as 1D and 2D barcode scanning, UI customization, and more.

Frequently Asked Questions

How do I scan a barcode in Xamarin?

You can scan a barcode in Xamarin by adding a Barcode Scanner SDK to your Xamarin-based mobile app, allowing your users to detect barcodes and extract the encoded information with their smartphone or tablet cameras.

What is Xamarin.forms?

Xamarin.Forms is a cross-platform framework that delivers a way to simply create native apps for iOS, Android, Windows, and macOS, entirely in C#.