Skip to main content

Installation

This page describes how to integrate the Scandit Data Capture SDK into your Xamarin Forms project.

Prerequisites

  • The latest stable version of Visual Studio.
  • A Xamarin.iOS project with minimum iOS deployment target of 13.0 or higher. Or a Xamarin.Android project with target SDK version 23 (Android 6, Marshmallow) or higher.
  • A valid Scandit Data Capture SDK license key. You can sign up for a free test account.
note

Android devices running the Scandit Data Capture SDK need to have a GPU or the performance will drastically decrease.

Get a License Key

  1. Sign up or Sign in to your Scandit account
  2. Create a project
  3. Create a license key

If you have a paid subscription, please reach out to Scandit Support 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.

Additional Information

note

On Android, the Scandit SDK uses content providers to initialize the scanning capabilities properly. If your own content providers depend on the Scandit SDK, choose an initOrder lower than 10 to make sure the SDK is ready first.

If not specified, initOrder is zero by default and you have nothing to worry about.

Check the official <provider> documentation.

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.Android, 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.