Skip to main content

SDK Initialization | Xamarin Barcode Scanner

License Key#

In order to run the Scanbot SDK functionality within your production app, you have to purchase and use a valid Scanbot SDK license.

Each license key is valid only for a given app bundle identifier. You will be unable to use any of the SDK features if the license key is corrupted, expired or invalid in any other way.

Trial License#

The Scanbot SDK will run without a license for one minute per session! To get an unrestricted, "no-strings-attached" 30-day trial license, please submit the Trial License Form on our website.

Please kindly note that a trial license can only be used in a development and staging environment. You are not allowed to publish your app to the App Store, Play Store or any 3rd party Android App Store with a trial license.

Purchase a Production License#

To get pricing information and purchase a production license for the Scanbot SDK please request a quote.

Initialize SDK & Register License#

The Scanbot Barcode Scanner SDK must be initialized before usage. Make sure to run the initialization as early as possible. We recommend implementing the initialization in the Application class of the Android and Forms app, and in the AppDelegate class of the iOS app.

public partial class App : Application{    public const string Key = null;
    public App()    {        InitializeComponent();
        SBSDK.Initialize(new InitializationOptions        {            LicenseKey = Key,            LoggingEnabled = true,            ErrorHandler = (status, feature) =>            {                var message = $"Error! Status: {status}; Your license is missing the feature: {feature}";                Console.WriteLine(message);            }        });    }
}