Google is committed to advancing racial equity for Black communities. See how.

Class3BiometricOrCredentialAuthPrompt

open class Class3BiometricOrCredentialAuthPrompt
kotlin.Any
   ↳ androidx.biometric.auth.Class3BiometricOrCredentialAuthPrompt

This class is used to build and configure a BiometricPrompt for authentication that permits Class 3 biometric modalities (fingerprint, iris, face, etc), or device credential modalities (device PIN, pattern, or password), and then start authentication. Class 3 (formerly known as Strong) refers to the strength of the biometric sensor, as specified in the Android 11 CDD. Class 3 authentication can be used for applications that use cryptographic operations.

Summary

Nested classes

Builder to configure a BiometricPrompt object for class 3 biometric or device credential authentication with specified options.

Public methods
open BiometricPrompt.CryptoObject?

Gets the crypto object for the prompt authentication.

open CharSequence?

Gets the description for the prompt.

open CharSequence?

Gets the subtitle for the prompt.

open Boolean

Indicates whether prompt requires explicit user confirmation after a passive biometric (e.g. iris or face) has been recognized but before

open AuthPrompt

Begins authentication using the configured biometric prompt, and returns an AuthPrompt wrapper that can be used for cancellation and dismissal of the biometric prompt.

Public methods

getCrypto

@Nullable open fun getCrypto(): BiometricPrompt.CryptoObject?

Gets the crypto object for the prompt authentication.

Return
BiometricPrompt.CryptoObject? Crypto object associated with this authentication.

getDescription

@Nullable open fun getDescription(): CharSequence?

Gets the description for the prompt. Defaults to null.

Return
CharSequence? description for the prompt

getSubtitle

@Nullable open fun getSubtitle(): CharSequence?

Gets the subtitle for the prompt.

Return
CharSequence? subtitle for the prompt

isConfirmationRequired

open fun isConfirmationRequired(): Boolean

Indicates whether prompt requires explicit user confirmation after a passive biometric (e.g. iris or face) has been recognized but before is called.

Return
Boolean whether prompt requires explicit user confirmation after a passive biometric.

startAuthentication

@NonNull open fun startAuthentication(): AuthPrompt

Begins authentication using the configured biometric prompt, and returns an AuthPrompt wrapper that can be used for cancellation and dismissal of the biometric prompt.

Return
AuthPrompt AuthPrompt wrapper that can be used for cancellation and dismissal of the biometric prompt using AuthPrompt#cancelAuthentication()