Biometric Authenticator
object BiometricAuthenticator
Helper for checking biometric availability and showing the platform BiometricPrompt.
Requires androidx.biometric:biometric on the classpath.
Functions
Link copied to clipboard
fun authenticate(activity: FragmentActivity, title: String, subtitle: String?, negativeButtonText: String = "Use PIN", onResult: (BiometricAuthResult) -> Unit)
Shows the system biometric prompt. Results are delivered on the main thread via onResult.
Link copied to clipboard
Checks whether biometrics can be used on this device.