launch

public Unit launch(Application application, SDKConfiguration sdkConfiguration)

Function that Initializes the SDK.

Parameters

application

the instance of your android Application class.

sdkConfiguration

the SDKConfiguration instance.

See also

Throws

if the provided SDKConfiguration is invalid. Please refer to the website guide to confirm your configuration is valid.

if sdkConfiguration uses setInvalidatedByBiometricChange(true) and no supported biometrics are available on the device, or LockConfigurationType.NONE is used.

if setInvalidatedByBiometricChange(false) with LockConfigurationType.BIOMETRICS_OR_DEVICE_CREDENTIALS and the device has no biometrics or lock credentials are available.

if the SDK fails to upgrade this installation from an older major version of the SDK.

if the SDK is already initialized or if the SDK is trying to migrate an already migrated installation

if the SDK detects corrupted or missing keys and tokens. This state requires the SDK to reset or to perform launchAccountRecovery

if the SDK cannot access necessary cryptographic material or perform cryptographic operations