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

AuthenticationResult

open class AuthenticationResult
kotlin.Any
   ↳ androidx.biometric.BiometricPrompt.AuthenticationResult

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

Summary

Public methods
open Int

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

open BiometricPrompt.CryptoObject?

Gets the CryptoObject associated with this transaction.

Public methods

getAuthenticationType

open fun getAuthenticationType(): Int

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

Return
Int An integer representing the type of authentication that was used.

getCryptoObject

@Nullable open fun getCryptoObject(): BiometricPrompt.CryptoObject?

Gets the CryptoObject associated with this transaction.

Return
BiometricPrompt.CryptoObject? The CryptoObject provided to authenticate().