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
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 |
getCryptoObject
open fun getCryptoObject(): BiometricPrompt.CryptoObject!
Provides the crypto object associated with this transaction.