Add the SDK to Your App
This guide shows you how to add the Scandit Data Capture SDK to current existing project.
The latest stable version of Visual Studio.
A Xamarin.iOS project with minimum iOS deployment target of 11.0 or higher. Or a Xamarin.Android project with target SDK version 21 (5.0 Lollipop) or higher.
A valid Scandit Data Capture SDK license key. You can sign up for a free test account at ssl.scandit.com.
Android devices running the Scandit Data Capture SDK need to have a GPU or the performance will drastically decrease.
Get a License Key
If you don’t have a Scandit account yet, create a free test account at ssl.scandit.com.
Sign in to your account at ssl.scandit.com/sessions/new.
Select “License Keys” from the left-hand menu.
If you don’t have a license key for your app yet, click “Create native SDK license key” and enter the bundle ID for your project.
Copy the license key.
If you have a paid subscription, please reach out to email@example.com if you need a new license key.
Add the SDK
The Scandit Data Capture SDK is distributed as NuGet packages.
You will always need to add the Scandit.DataCapture.Core.Xamarin.Forms package, which contains the core functionality used by the other data capture packages. In addition, depending on the data capture task, you will need a reference to:
Scandit.DataCapture.Barcode.Xamarin.Forms if you want to use barcode-related functionality such as barcode capture.
You can safely remove Scandit.DataCapture.Barcode.Xamarin.Forms dependency if you are not going to use its features.
Camera Permissions: When using the Scandit Data Capture SDK you will want to set the camera as the frame source for various capture modes. On Xamarin.iOS, you have to set the “Privacy - Camera Usage Description” field in the Info.plist file and you have to request camera permissions in your own application before starting scanning. To see how you can achieve this, take a look at our samples: Run our Sample Apps.
You are now ready to tackle the following guides:
Get Started With Barcode Capture: guides you through the process of adding barcode scanning to your app
Get Started With MatrixScan: guides you through the process of scanning multiple barcodes at once and use AR overlays in your app