switchToLockConfiguration

public abstract AsyncCompletableOperation switchToLockConfiguration(Application application, SwitchTargetLockConfiguration targetLockConfiguration)

Switch lock configuration without resetting. Requires at least one enrolled account.

This is a protected operation, so SDK has to be unlocked first, depending on the current lockConfiguration.

Parameters

application

to re-launch the SDK with the new configuration

targetLockConfiguration

the desired lock configuration to switch to.

See also

for target configuration options and parameters.

Throws

if the biometric authentication failed.

if the SDK is locked.

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 there are no enrolled accounts.

if the SDK is not initialized.

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

if the SDK detects corrupted storage. This state requires the SDK to reset or to perform launchAccountRecovery

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