Add the SDK to Your App

This guide shows you how to add the Scandit Data Capture SDK to current existing project.

Prerequisites

  • The latest stable version of Visual Studio.

  • A .NET SDK.

  • A .NET for iOS project with minimum iOS deployment target of 13.0 or higher. Or a .NET for 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 at ssl.scandit.com.

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 support@scandit.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 package, which contains the core functionality used by the other data capture packages. When developing MAUI application you will also need to add the Scandit.DataCapture.Core.Maui package. In addition, depending on the data capture task, you will need a reference to:

  • Scandit.DataCapture.Barcode (ScanditBarcodeCapture API) if you want to use barcode-related functionality such as barcode capture or MatrixScan.

  • Scandit.DataCapture.Parser (ScanditParser API) if you want to parse data strings, e.g. as found in barcodes, into a set of key-value mappings.

  • Scandit.DataCapture.TextCapture (ScanditTextCapture API) if you want to use text recognition (OCR) functionality, often combined with barcode scanning to deliver simultaneous barcode and text capture.

  • Scandit.DataCapture.IdCapture (ScanditIdCapture API) if you want to scan personal identification documents such as identity cards, passports or visas.

You can safely remove Scandit.DataCapture.Barcode, Scandit.DataCapture.Parser, Scandit.DataCapture.TextCapture or Scandit.DataCapture.IdCapture dependencies if you are not going to use their features.

Additional Information

  • 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 .NET for iOS, you have to set the “Privacy - Camera Usage Description” field in the Info.plist file.

  • When using the Scandit Data Capture SDK in MAUI application additionally 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.

Next steps

To add single barcode scanning to your app:

To add ID scanning to your app:

To add multi-barcode scanning to your app: