Google is committed to advancing racial equity for Black communities. See how.

BiometricPrompt.AuthenticationResult

public static class BiometricPrompt.AuthenticationResult
extends Object

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


A container for data passed to BiometricPrompt.AuthenticationCallback.onAuthenticationSucceeded(AuthenticationResult) when the user has successfully authenticated.

Summary

Public methods

int getAuthenticationType()

Gets the type of authentication (e.g.

BiometricPrompt.CryptoObject getCryptoObject()

Gets the BiometricPrompt.CryptoObject associated with this transaction.

Inherited methods

Public methods

getAuthenticationType

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
int An integer representing the type of authentication that was used.

getCryptoObject

public BiometricPrompt.CryptoObject getCryptoObject ()

Gets the BiometricPrompt.CryptoObject associated with this transaction.

Returns
BiometricPrompt.CryptoObject The BiometricPrompt.CryptoObject provided to authenticate().