Added in API level 28

AuthenticationResult


open class AuthenticationResult
kotlin.Any
   ↳ android.hardware.biometrics.BiometricPrompt.AuthenticationResult

Container for callback data from authenticate(android.os.CancellationSignal,java.util.concurrent.Executor,android.hardware.biometrics.BiometricPrompt.AuthenticationCallback) and authenticate(android.hardware.biometrics.BiometricPrompt.CryptoObject,android.os.CancellationSignal,java.util.concurrent.Executor,android.hardware.biometrics.BiometricPrompt.AuthenticationCallback).

Summary

Public methods
open Int

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

open BiometricPrompt.CryptoObject!

Provides the crypto object associated with this transaction.

Public methods

getAuthenticationType

Added in API level 30
open fun getAuthenticationType(): Int

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

Return
Int An integer value representing the authentication method used. Value is android.hardware.biometrics.BiometricPrompt#AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL, or android.hardware.biometrics.BiometricPrompt#AUTHENTICATION_RESULT_TYPE_BIOMETRIC