AuthenticationResult.Error


public final class AuthenticationResult.Error implements AuthenticationResult


A result when an error has been encountered and authentication has stopped.

Summary

Public constructors

Error(int errorCode, @NonNull CharSequence errString)

Public methods

@NonNull AuthenticationResult.Error

Returns a Error only if it's a Error, throws otherwise.

final @NonNull CharSequence

A human-readable string that describes the error.

final int

An integer ID associated with the error.

Inherited methods

From androidx.biometric.AuthenticationResult
boolean

Whether this AuthenticationResult is an Error.

boolean

Whether this AuthenticationResult is a Success.

AuthenticationResult.Success

Returns a Success only if it's a Success, throws otherwise.

Public constructors

Error

Added in 1.4.0-alpha03
public Error(int errorCode, @NonNull CharSequence errString)

Public methods

error

public @NonNull AuthenticationResult.Error error()

Returns a Error only if it's a Error, throws otherwise.

getErrString

Added in 1.4.0-alpha03
public final @NonNull CharSequence getErrString()

A human-readable string that describes the error.

getErrorCode

Added in 1.4.0-alpha03
public final int getErrorCode()

An integer ID associated with the error.