BiometricPromptAuthenticator

@RequiresApi(value = 30)
class BiometricPromptAuthenticator(activity: () -> Activity?, title: String = "Confirm it's you", subtitle: String? = "Your credential's key signs what you share.") : HolderAuthenticator(source)

The system's biometric prompt over the app's current activity (activity's, null when none is showing), allowing a strong biometric or the screen lock, as Face ID or the passcode on iOS.

A prompt shown while the wallet signs stays until the holder answers or dismisses it: cancelling the coroutine that started the presentation doesn't dismiss it yet.

Constructors

Link copied to clipboard
constructor(activity: () -> Activity?, title: String = "Confirm it's you", subtitle: String? = "Your credential's key signs what you share.")

Functions

Link copied to clipboard
open suspend override fun authenticate(signature: Signature)

Returns once signature is authorized — after BiometricPrompt succeeds with it as the CryptoObject — and throws if the holder cancels.