launchAccountRecovery

public abstract Unit launchAccountRecovery(Application application, SDKConfiguration sdkConfiguration, UserPresenceVerificationMode userPresenceVerificationMode, 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.

userPresenceVerificationMode

used to confirm User-Presence if required by the SDKConfiguration

callback

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

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 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.


@Deprecated(message = "Use launchAccountRecovery with optional UserPresenceVerificationMode argument instead.")
public abstract AsyncCompletableOperation launchAccountRecovery(Application application, SDKConfiguration sdkConfiguration)

Deprecated

Use launchAccountRecovery with optional UserPresenceVerificationMode argument instead.

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

Parameters

application

the instance of your android Application class.

sdkConfiguration

the SDKConfiguration instance.

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.