BiometricPrompt.PromptInfo.Builder

public static class BiometricPrompt.PromptInfo.Builder
extends Object

java.lang.Object
   ↳ androidx.biometric.BiometricPrompt.PromptInfo.Builder


A builder used to set individual options for the BiometricPrompt.PromptInfo class.

Summary

Public constructors

Builder()

Public methods

BiometricPrompt.PromptInfo build()

Creates a BiometricPrompt.PromptInfo object with the specified options.

BiometricPrompt.PromptInfo.Builder setAllowedAuthenticators(int allowedAuthenticators)

Optional: Specifies the type(s) of authenticators that may be invoked by BiometricPrompt to authenticate the user.

BiometricPrompt.PromptInfo.Builder setConfirmationRequired(boolean confirmationRequired)

Optional: Sets a system hint for whether to require explicit user confirmation after a passive biometric (e.g.

BiometricPrompt.PromptInfo.Builder setDescription(CharSequence description)

Optional: Sets the description for the prompt.

BiometricPrompt.PromptInfo.Builder setDeviceCredentialAllowed(boolean deviceCredentialAllowed)

This method is deprecated. Use setAllowedAuthenticators(int) instead.

BiometricPrompt.PromptInfo.Builder setNegativeButtonText(CharSequence negativeButtonText)

Required: Sets the text for the negative button on the prompt.

BiometricPrompt.PromptInfo.Builder setSubtitle(CharSequence subtitle)

Optional: Sets the subtitle for the prompt.

BiometricPrompt.PromptInfo.Builder setTitle(CharSequence title)

Required: Sets the title for the prompt.

Inherited methods