Class2BiometricAuthPrompt.Builder

public static final class Class2BiometricAuthPrompt.Builder
extends Object

java.lang.Object
   ↳ androidx.biometric.auth.Class2BiometricAuthPrompt.Builder


Builder for a Class2BiometricAuthPrompt with configurable options.

Summary

Public constructors

Builder(CharSequence title, CharSequence negativeButtonText)

Constructs a prompt builder with the given required options.

Public methods

Class2BiometricAuthPrompt build()

Creates a new prompt with the specified options.

Class2BiometricAuthPrompt.Builder setConfirmationRequired(boolean confirmationRequired)

Sets a hint indicating whether the prompt should require explicit user confirmation after a passive biometric (e.g.

Class2BiometricAuthPrompt.Builder setDescription(CharSequence description)

Sets a description that should be displayed on the prompt.

Class2BiometricAuthPrompt.Builder setSubtitle(CharSequence subtitle)

Sets a subtitle that should be displayed on the prompt.

Inherited methods

Public constructors

Builder

public Builder (CharSequence title, 
                CharSequence negativeButtonText)

Constructs a prompt builder with the given required options.

Parameters
title CharSequence: The title to be displayed on the prompt.

negativeButtonText