Deprecation warning
Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.
We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.
You'll find the updated documentation at: Data Capture SDK Documentation for Xamarin.Android and Data Capture SDK Documentation for Xamarin.iOS
To integrate the Scandit Barcode Scanner SDK into your Xamarin application you have 2 options:
- Use the Android/iOS/Windows BarcodePicker implementations wrapped in C#. Different code will have to be written for interacting with the BarcodePicker on each of the platforms.
- Use the unified BarcodePicker API added in 4.16.0. This API is implemented as a portable class library and provides the same interface on all the platforms. The unified API is considerably simpler and reduces the lines of code that need to be written to interact with the scanner. Note however, that the unified API only provides a subset of the functionality available when using the native picker implementations. For example, it is not possible to display the barcode picker as a scaled/cropped subview.
API Reference
The most important classes are listed below for your convenience. If you are using the unified API, refer to the classes listed in the unified section. Android uses the namespace 'ScanditBarcodeScanner.Android', iOS the namespace 'ScanditBarcodeScanner.iOS'. For native windows refer to the Windows documentation.
Getting Started
- The Component in the Xamarin Component Store
- Using the Sample Apps
- How To Add a Xamarin Component or Local NuGet Package
Unified API Guides
Android Guides
- Integrate the Scandit Barcode Scanner into your app
- Presenting the Scandit Barcode Scanner
- Customizing the Scan User Interface
- Configure/Optimize the Barcode Recognition for your Use Case
- Restricting the Area Where Barcodes are Scanned
- Changing the Length of the Barcodes to Decode
iOS Guides
- Integrate the Scandit Barcode Scanner into your app
- Presenting the Scandit Barcode Scanner
- Customizing the Scan User Interface
- Restricting the Area Where Barcodes are Scanned
- Changing the Length of the Barcodes to Decode
- Using the Scandit Scan Case in your app