launchAccountRecovery
Function that Initializes the SDK bypassing FTCorruptedStateException and attempting to recover Accounts.
Parameters
the instance of your android Application class.
the SDKConfiguration instance.
used to confirm User-Presence if required by the SDKConfiguration
For LockConfigurationType.SDK_PIN_WITH_BIOMETRICS_OPTIONAL use WithSDKPin
For LockConfigurationType.BIOMETRICS_ONLY use WithBiometrics
For LockConfigurationType.BIOMETRICS_OR_DEVICE_CREDENTIALS use WithBiometricsOrDeviceCredentials
For LockConfigurationType.NONE use null
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 UserPresenceVerificationMode argument doesn't match the SDKConfiguration argument.
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
Use launchAccountRecovery with optional UserPresenceVerificationMode argument instead.
Function that Initializes the SDK bypassing FTCorruptedStateException and attempting to recover Accounts for LockConfigurationType.NONE
Parameters
the instance of your android Application class.
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.