AuthenticationRequest.Biometric


class AuthenticationRequest.Biometric : AuthenticationRequest


A set of configurable options for how the BiometricPrompt should appear and behave with biometric authentication with fallbacks.

Summary

Nested types

Builder used to create an instance of Biometric.

Fallback options for the biometric authentication.

Custom Fallback option displayed as the negative button in prompt authentication screen if it is the only option or displayed in a list in the fallback options page if there are more than one.

Device credential as the fallback.

Types of biometric strength for the prompt.

Class 2 (formerly Weak).

Class 3 (formerly Strong).

Public companion functions

Int

Returns the maximum number of fallback options that can be added to the prompt.

Public properties

List<AuthenticationRequest.Biometric.Fallback>

The Fallback options for the biometric authentication.

AuthenticationRequest.BodyContent?

The optional BodyContent of the prompt.

Boolean

Whether user confirmation should be required for passive biometrics.

Bitmap?
String?
Int
AuthenticationRequest.Biometric.Strength

The minimum biometric strength for the authentication.

String?

The optional subtitle of the prompt.

String

The title of the prompt.

Public companion functions

getMaxFallbackOptions

Added in 1.4.0-alpha06
fun getMaxFallbackOptions(): Int

Returns the maximum number of fallback options that can be added to the prompt.

Returns
Int

The maximum number of fallback options.

Public properties

authFallbacks

Added in 1.4.0-alpha06
val authFallbacksList<AuthenticationRequest.Biometric.Fallback>

The Fallback options for the biometric authentication.

content

Added in 1.4.0-alpha06
val contentAuthenticationRequest.BodyContent?

The optional BodyContent of the prompt.

isConfirmationRequired

Added in 1.4.0-alpha06
val isConfirmationRequiredBoolean

Whether user confirmation should be required for passive biometrics.

logoBitmap

Added in 1.4.0-alpha06
val logoBitmapBitmap?

logoDescription

Added in 1.4.0-alpha06
val logoDescriptionString?

logoRes

Added in 1.4.0-alpha06
val logoResInt

minStrength

Added in 1.4.0-alpha06
val minStrengthAuthenticationRequest.Biometric.Strength

The minimum biometric strength for the authentication. Note that Class 3 biometrics are guaranteed to meet the requirements for Class 2 and thus will also be accepted.

subtitle

Added in 1.4.0-alpha06
val subtitleString?

The optional subtitle of the prompt.

title

Added in 1.4.0-alpha06
val titleString

The title of the prompt.