Xamarin Barcode Scanner
Add fast, reliable barcode scanning to your Xamarin apps with the Scanbot Xamarin Barcode Scanner SDK. Seamlessly integrate real-time barcode scanning for both iOS and Android using Xamarin or Xamarin.Forms.
Trusted by 250+ industry leaders
Real-time AR feedback
The Xamarin Barcode Scanner SDK allows you to display contextual information about the scanned item directly in the camera view during barcode scanning.
Barcode scanning in challenging conditions
The Xamarin Barcode Scanner SDK is optimized for tough environments, offering reliable performance in harsh conditions:
- Damaged barcodes
- Low-light environments
- Tiny or distant barcodes
Customizable UI components
Our Ready-To-Use UI components cover all barcode scanning scenarios and are highly customizable.
0.04s per scan
100% offline
Perform barcode scanning without an internet connection – ensuring total data security, privacy, and uninterrupted functionality in offline environments.
Technical requirements
The Scanbot Xamarin Barcode Scanner SDK requires:
- Xamarin Version: 4.x or higher
- Platforms: iOS 13.0+ and Android 5.0+ (API Level 21+)
- Hardware: A rear-facing camera with autofocus
- Architectures:
- Android: armeabi-v7, arm64-v8a, x86, x86_64
- iOS: arm64, x86_64
Add a fast and reliable Barcode Scanner to your Xamarin or Xamarin.Forms app
The Scanbot Xamarin Barcode Scanner SDK allows developers to easily integrate fast, accurate barcode scanning functionalities into their Xamarin or Xamarin.Forms applications. The SDK provides powerful APIs for scanning and parsing both 1D and 2D barcodes, ensuring real-time barcode recognition on both iOS and Android platforms.
Supporting major barcode formats such as QR codes, PDF417, and EAN, the Xamarin Barcode Scanner SDK is perfect for industries that require precise barcode scanning, including retail, logistics, healthcare, and manufacturing. Ready-To-Use UI components allow developers to quickly implement barcode scanning functionalities, while customizable options ensure that the scanner fits seamlessly into your app’s design. The SDK performs exceptionally well in low-light environments and can handle damaged barcodes, ensuring reliability in any condition.
Additionally, the SDK supports image-based barcode scanning, making it suitable for apps that need to scan barcodes on static images uploaded to the app.
Need help? Our expert support team is available via Slack, Microsoft Teams, or email to guide you through the integration process and ensure that your Xamarin app takes full advantage of the Scanbot Barcode Scanner SDK.
Features
Discover common Xamarin Barcode Scanning use cases
See how the scan modes of the Scanbot Xamarin Barcode Scanner can improve your workflows.
-
Single Scanning
The Xamarin Barcode Scanner is ideal for scanning single barcodes, perfect for retail product lookups or inventory management tasks. Users can scan individual barcodes with speed and precision, ensuring smooth operations.
-
Batch Scanning
-
Multi Scanning
-
Find & Pick
-
Scan & Count
-
Barcode Vision
How to integrate the Scanbot Xamarin Barcode Scanner SDK
Download & Installation
The Scanbot Barcode Scanner SDK for Xamarin is provided as 2 NuGet packages:
- ScanbotBarcodeSDK.Xamarin – contains the Scanbot Barcode Scanner SDK Xamarin Native bindings and wrappers for Android and iOS
- ScanbotBarcodeSDK.Xamarin.Forms – provides portable Scanbot Barcode Scanner SDK wrappers for use with Xamarin.Forms
Install ScanbotBarcodeSDK.Xamarin.Forms
if your project is based on Xamarin.Forms, otherwise install ScanbotBarcodeSDK.Xamarin
.
You can install them directly via Visual Studio IDE: Open your App-Solution in Visual Studio, select your iOS or Android project and click on the menu item Project -> Add NuGet Packages. Make sure nuget.org is selected as the source and search for the package.
By clicking on Add Package the Scanbot Barcode Scanner SDK will be downloaded and installed into your project. Do that for both your iOS and Android projects. Also, ScanbotBarcodeSDK.Xamarin.Forms must be installed in the portable app project (if one exists – not necessary if you are using a shared project).
Register dependencies (Forms)
If you are using ScanbotBarcodeSDK.Xamarin.Forms you will need to manually register the dependencies like shown:
MainActivity.cs
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
ScanbotBarcodeSDK.Forms.Droid.DependencyManager.Register(this);
//...
}
AppDelegate.cs
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
ScanbotBarcodeSDK.Forms.iOS.DependencyManager.Register();
//...
}
Frequently Asked Questions
What are the key requirements for the Scanbot Xamarin Barcode Scanner SDK?
The Scanbot Xamarin Barcode Scanner SDK has the following key requirements:
Xamarin Version: Xamarin 4.x or higher, Xamarin.Forms supported
Operating System:
- Android: 5.0 (API Level 21) and higher
- iOS: 13.0 and higher
Hardware: A device with a rear-facing camera with autofocus
Supported Architectures:
- Android: armeabi-v7, arm64-v8a, x86, x86_64
- iOS: arm64 (physical devices) and x86_64 (simulators)
These requirements ensure compatibility across a broad range of Android and iOS devices, enabling smooth integration of barcode scanning functionality in Xamarin applications.
Can I use the Xamarin Barcode Scanner SDK offline?
Yes, the Scanbot Xamarin Barcode Scanner SDK works entirely offline. All barcode scanning and data processing happen locally on the device, ensuring data privacy and allowing for usage in areas with limited or no internet connectivity. This makes the SDK ideal for scenarios such as field operations, warehousing, and remote work.
Does the Xamarin Barcode Scanner SDK support all barcode types?
Yes, the Scanbot Xamarin Barcode Scanner SDK supports a wide range of barcode formats, including:
1D Barcodes: UPC, EAN, Code 128, Code 39, ITF, and more
2D Barcodes: QR codes, PDF417, DataMatrix, Aztec, and others
This broad barcode support makes the SDK versatile for applications in retail, logistics, healthcare, and inventory management. You can find a full list of supported barcodes here.
Is there a trial version available for the Xamarin Barcode Scanner SDK?
Yes, a 7-day free trial license is available for the Scanbot Xamarin Barcode Scanner SDK. You can request a trial license by visiting the Scanbot SDK trial request page. Once the form is submitted, you will receive a trial license key via email to test all SDK features.
Is the Scanbot Xamarin Barcode Scanner SDK compatible with different Android and iOS devices?
Yes, the Scanbot Xamarin Barcode Scanner SDK is compatible with a wide range of devices across both Android and iOS platforms. It supports:
1. Android: Devices running Android 5.0 (API Level 21) and higher
2. iOS: Devices running iOS 13.0 and higher
The SDK is optimized for both older and newer devices, ensuring efficient barcode scanning across various device types and architectures.
How do I customize the Scanbot Xamarin Barcode Scanner UI?
The Scanbot Xamarin Barcode Scanner SDK provides customizable Ready-To-Use UI components, enabling you to adjust the look and feel of the scanner interface to suit your app’s design. Customization options include:
1. Scanner overlay design
2. Button styles and colors
3. Feedback sound and messages
This flexibility allows you to integrate barcode scanning functionality that aligns with the branding and user experience of your Xamarin app.
If you need more customization options, you can also integrate the SDK using Classical Components – giving you complete freedom over the design of the Scanner UI.
What platforms are supported besides Xamarin?
Besides Xamarin, the Scanbot SDK is supported across a variety of platforms, including:
1. iOS
2. Android
3. JavaScript (Web)
4. Flutter
5. React Native
6. Cordova
7. Capacitor / Ionic
8. .NET MAUI
9. UWP (Universal Windows Platform)
10. Linux
This broad platform support allows developers to integrate barcode scanning functionalities into applications across mobile, desktop, and web environments.