public final class

CredentialAuthPrompt.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.biometric.auth.CredentialAuthPrompt.Builder

Overview

Builder for a CredentialAuthPrompt with configurable options.

Summary

Constructors
publicBuilder(java.lang.CharSequence title)

Constructs a prompt builder with the given required options.

Methods
public CredentialAuthPromptbuild()

Creates a new prompt with the specified options.

public CredentialAuthPrompt.BuildersetDescription(java.lang.CharSequence description)

Sets a description that should be displayed on the prompt.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.CharSequence title)

Constructs a prompt builder with the given required options.

Parameters:

title: The title to be displayed on the prompt.

Methods

public CredentialAuthPrompt.Builder setDescription(java.lang.CharSequence description)

Sets a description that should be displayed on the prompt. Defaults to null.

Parameters:

description: A description for the prompt.

Returns:

This builder.

public CredentialAuthPrompt build()

Creates a new prompt with the specified options.

Returns:

An instance of CredentialAuthPrompt.