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 Android

ScanditLicense Class Reference

Static Public Member Functions

static void setAppKey (String key)
 
static String getAppKey ()
 

Detailed Description

Interface to set the scandit barcode scanner app key.

Since
4.9.0

Member Function Documentation

static void setAppKey ( String  key)
static

Set the Barcode Scanner application key to be used for this app.

You must call this static method at least once before instantiating the BarcodePicker with the key you downloaded from the Scandit website.

Calling this method does not directly activate the device and count toward your active devices. Device activation happens the first time a BarcodePicker is instantiated. It is thus save to set the app key at application start time, irrespective of whether the user is going to scan barcodes or not.

Note that currently it is not possible to change the app key after a picker has been instantiated. Only the app key set when the first picker is instantiated will be used. You will have to close the application and restart it before changing the app key.

Parameters
keythe application key.
Since
4.9.0
static String getAppKey ( )
static

Get the currently set app key.

Returns
The currently set app key. By default no app key is set.
Since
4.9.0

The documentation for this class was generated from the following file:
  • ScanditLicense.java