Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

BiometricPrompt.PromptInfo

public static class BiometricPrompt.PromptInfo
extends Object

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


A class that contains a builder which returns the BiometricPrompt.PromptInfo to be used in BiometricPrompt.authenticate(PromptInfo, CryptoObject) and BiometricPrompt.authenticate(PromptInfo).

Summary

Nested classes

class BiometricPrompt.PromptInfo.Builder

A builder that collects arguments to be shown on the system-provided biometric dialog. 

Public methods

CharSequence getDescription()
CharSequence getNegativeButtonText()
CharSequence getSubtitle()
CharSequence getTitle()
boolean isConfirmationRequired()
boolean isDeviceCredentialAllowed()

Inherited methods

Public methods

getDescription

public CharSequence getDescription ()

Returns
CharSequence See BiometricPrompt.PromptInfo.Builder.setDescription(CharSequence).

getNegativeButtonText

public CharSequence getNegativeButtonText ()

Returns
CharSequence See BiometricPrompt.PromptInfo.Builder.setNegativeButtonText(CharSequence).

getSubtitle

public CharSequence getSubtitle ()

Returns
CharSequence See BiometricPrompt.PromptInfo.Builder.setSubtitle(CharSequence).

getTitle

public CharSequence getTitle ()

Returns
CharSequence See BiometricPrompt.PromptInfo.Builder.setTitle(CharSequence).

isConfirmationRequired

public boolean isConfirmationRequired ()

Returns
boolean See BiometricPrompt.PromptInfo.Builder.setConfirmationRequired(boolean).

isDeviceCredentialAllowed

public boolean isDeviceCredentialAllowed ()

Returns
boolean See BiometricPrompt.PromptInfo.Builder.setDeviceCredentialAllowed(boolean).