launchAccountRecovery

public final Unit launchAccountRecovery(Application application, SDKConfiguration sdkConfiguration, Callback<Unit> callback)

Function that Initializes the SDK bypassing FTCorruptedStateException and attempting to recover Accounts.

Parameters

application

the instance of your android Application class.

sdkConfiguration

the SDKConfiguration instance.

callback

to get notified about the success or failure of this recovery operation.

Throws

if the SDK is locked. Currently this operation is only supported for LockConfigurationType.NONE which is unaffected by this.

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 is already initialized.

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

if the account recovery fails, due to necessary preconditions (e.g. having accounts in the DB) or due to rejection by the API. Refer to subtypes for more specific error types.

if the API request fails. Refer to FTApiException subtypes for more specific errors.