AuthenticationError


public final class AuthenticationError


Error returned from the Biometric Prompt flow that is executed by androidx.credentials.CredentialManager after the user makes a selection on the Credential Manager account selector.

Summary

Public constructors

AuthenticationError(int errorCode, CharSequence errorMsg)

Public methods

boolean
equals(Object other)
final int

the error code denoting what kind of error was encountered while the biometric prompt flow failed, must be one of the error codes defined in androidx.biometric.BiometricPrompt such as androidx.biometric.BiometricPrompt.ERROR_HW_UNAVAILABLE or androidx.biometric.BiometricPrompt.ERROR_TIMEOUT

final CharSequence

the message associated with the errorCode in the form that can be displayed on a UI.

int

Public constructors

AuthenticationError

Added in 1.5.0-beta01
public AuthenticationError(int errorCode, CharSequence errorMsg)

Public methods

equals

public boolean equals(Object other)

getErrorCode

Added in 1.5.0-beta01
public final int getErrorCode()

the error code denoting what kind of error was encountered while the biometric prompt flow failed, must be one of the error codes defined in androidx.biometric.BiometricPrompt such as androidx.biometric.BiometricPrompt.ERROR_HW_UNAVAILABLE or androidx.biometric.BiometricPrompt.ERROR_TIMEOUT

getErrorMsg

Added in 1.5.0-beta01
public final CharSequence getErrorMsg()

the message associated with the errorCode in the form that can be displayed on a UI.

hashCode

public int hashCode()