public class

BiometricPrompt.AuthenticationResult

extends java.lang.Object

 java.lang.Object

↳androidx.biometric.BiometricPrompt.AuthenticationResult

Overview

A container for data passed to BiometricPrompt.AuthenticationCallback when the user has successfully authenticated.

Summary

Methods
public intgetAuthenticationType()

Gets the type of authentication (e.g.

public BiometricPrompt.CryptoObjectgetCryptoObject()

Gets the BiometricPrompt.CryptoObject associated with this transaction.

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

Methods

public BiometricPrompt.CryptoObject getCryptoObject()

Gets the BiometricPrompt.CryptoObject associated with this transaction.

Returns:

The BiometricPrompt.CryptoObject provided to authenticate().

public int getAuthenticationType()

Gets the type of authentication (e.g. device credential or biometric) that was requested from and successfully provided by the user.

Returns:

An integer representing the type of authentication that was used.

See also: BiometricPrompt.AUTHENTICATION_RESULT_TYPE_UNKNOWN, BiometricPrompt.AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL, BiometricPrompt.AUTHENTICATION_RESULT_TYPE_BIOMETRIC