CredentialAuthPrompt.Builder

public static final class CredentialAuthPrompt.Builder
extends Object

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


Builder for a CredentialAuthPrompt with configurable options.

Summary

Public constructors

Builder(CharSequence title)

Constructs a prompt builder with the given required options.

Public methods

CredentialAuthPrompt build()

Creates a new prompt with the specified options.

CredentialAuthPrompt.Builder setDescription(CharSequence description)

Sets a description that should be displayed on the prompt.

Inherited methods

Public constructors

Builder

public Builder (CharSequence title)

Constructs a prompt builder with the given required options.

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

Public methods

build

public CredentialAuthPrompt build ()

Creates a new prompt with the specified options.

Returns
CredentialAuthPrompt An instance of CredentialAuthPrompt.

setDescription

public CredentialAuthPrompt.Builder setDescription (CharSequence description)

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

Parameters
description CharSequence: A description for the prompt.

Returns
CredentialAuthPrompt.Builder This builder.