BiometricPrompt.AuthenticationResult

public class BiometricPrompt.AuthenticationResult


A container for data passed to onAuthenticationSucceeded when the user has successfully authenticated.

Summary

Public methods

int

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

@Nullable BiometricPrompt.CryptoObject

Gets the CryptoObject associated with this transaction.

Public methods

getAuthenticationType

Added in 1.1.0
@BiometricPrompt.AuthenticationResultType
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

Added in 1.0.0
public @Nullable BiometricPrompt.CryptoObject getCryptoObject()

Gets the CryptoObject associated with this transaction.

Returns
@Nullable BiometricPrompt.CryptoObject

The CryptoObject provided to authenticate().