setLicenseKey

fun setLicenseKey(base64LicenseKey: String, applicationContext: Context)

Set license key and unlock the SDK.

Parameters

base64LicenseKey

License file encoded as base64 string.

applicationContext

Application context.

Throws

if license is not valid


fun setLicenseKey(base64LicenseKey: String, licensee: String, applicationContext: Context)

Set license key and unlock the SDK. Also define licensee that will be used to validate the license. This method can be used to unlock the SDK in library mode, i.e. when Microblink SDK is being packaged inside 3rd party SDK. Unlocking Microblink SDK in library mode allows usage of single license key in multiple applications.

Parameters

base64LicenseKey

Byte array containing the license.

licensee

Licensee to which license is given to.

applicationContext

Application context.

Throws

if license is not valid