📱 Mobile SDK Guide4️⃣ De-Enrollment De-enrollment is biometric equivalde of an account deletion. Keyless performs an authentication to compare the user's facial biometrics with the ones computed during enrollment . If the biometrics match, the user is authenticated and their account will be removed from Keyless. This operation is irreversible .
Android iOS Android 4.6 iOS 4.6 Flutter
Copy val configuration = BiomDeEnrollConfig ()
Keyless. deEnroll (
deEnrollmentConfiguration = configuration,
onCompletion = { result ->
when (result) {
is Keyless.KeylessResult.Success -> Log. d ( "KeylessSDK " , "De-enroll success" )
is Keyless.KeylessResult.Failure -> Log. d ( "KeylessSDK " , "De-enroll failure - error code ${ result.error.code } " )
}
}
)
Copy let configuration = BiomDeEnrollConfig ()
. build ()
Keyless. deEnroll (
deEnrollmentConfiguration : configuration,
onCompletion : { error in
if let error = error {
print ( "De-Enrollment finished with error: \(error.message) " )
} else {
print ( "De-Enrollment finished with success" )
}
}
}
Copy val configuration = DeEnrollmentConfiguration.builder. build ()
Keyless. deEnroll (
deEnrollmentConfiguration = configuration,
onCompletion = { result ->
when (result) {
is Keyless.KeylessResult.Success -> Log. d ( "KeylessSDK " , "De-enroll success" )
is Keyless.KeylessResult.Failure -> Log. d ( "KeylessSDK " , "De-enroll failure - error code ${ result.error.code } " )
}
}
)
Copy let configuration = Keyless.DeEnrollmentConfiguration.builder
. build ()
Keyless. deEnroll (
deEnrollmentConfiguration : configuration,
onCompletion : { error in
if let error = error {
print ( "De-Enrollment finished with error: \(error.message) " )
} else {
print ( "De-Enrollment finished with success" )
}
}
}
Copy // Biometric de-enrollment
final configuration = BiomDeEnrollConfig (
livenessConfiguration : LivenessConfiguration .passiveStandaloneHigh,
livenessTimeout : 60 ,
cameraDelaySeconds : 0
);
// Or PIN-based de-enrollment
final configuration = PinDeEnrollConfig (
pin : "1234"
);
try {
await Keyless .instance. deEnroll (configuration);
print ( "De-enrollment successful" );
} catch (error) {
print ( "De-enrollment failed: $error " );
}
DeEnrollment configuration
Camera Delay
Use cameraDelaySeconds
to specify the delay (in seconds) between when the camera preview appears, and when the liveness processing starts.
Liveness Settings
Using livenessConfiguration
you can configure the liveness security level during enrollment. The possible liveness configuration are under LivenessSettings.LivenessConfiguration
:
Copy PASSIVE_STANDALONE_MEDIUM
PASSIVE_STANDALONE_HIGH //recommended configuration
PASSIVE_STANDALONE_HIGHEST
You can also specify a livenessTimeout
(in seconds) to cancel the enrollment if the liveness takes longer than the timeout.
More details on liveness in the dedicated liveness settings section.