switchToLockConfigurationWithPin

public final Unit switchToLockConfigurationWithPin(Application application, SDKConfiguration sdkConfiguration, CharArray sdkPin, Callback<Unit> callback)

Protected operation to change SDK configuration without resetting. Requires at least one enrolled account.

IllegalStateException may be returned in callback for these reasons:

  1. The function is called before launching the SDK.

  2. There are no enrolled accounts.

  3. Wrong switchToLockConfiguration* method is used for the provided SDKConfiguration.

Parameters

application

to re-launch the SDK with the new configuration

sdkConfiguration

the new SDKConfiguration to apply. Must use LockConfigurationType.SDK_PIN_WITH_BIOMETRICS_OPTIONAL

sdkPin

the SDK PIN to be set for the new configuration

callback

to receive success or failure result of this operation.