Added in API level 28

BiometricPrompt.AuthenticationResult


public static class BiometricPrompt.AuthenticationResult
extends Object

java.lang.Object
   ↳ android.hardware.biometrics.BiometricPrompt.AuthenticationResult


Container for callback data from authenticate(CancellationSignal,Executor,AuthenticationCallback) and authenticate(CryptoObject,CancellationSignal,Executor,AuthenticationCallback).

Summary

Public methods

int getAuthenticationType()

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

BiometricPrompt.CryptoObject getCryptoObject()

Provides the crypto object associated with this transaction.

Inherited methods

Public methods

getAuthenticationType

Added in API level 30
public int getAuthenticationType ()

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

Returns
int An integer value representing the authentication method used.
Value is one of the following:

getCryptoObject

Added in API level 28
public BiometricPrompt.CryptoObject getCryptoObject ()

Provides the crypto object associated with this transaction.

Returns
BiometricPrompt.CryptoObject The crypto object provided to authenticate(CryptoObject,CancellationSignal,Executor,AuthenticationCallback)