public abstract class

BiometricPrompt.AuthenticationCallback

extends java.lang.Object

 java.lang.Object

↳androidx.biometric.BiometricPrompt.AuthenticationCallback

Overview

A collection of methods that may be invoked by BiometricPrompt during authentication.

Summary

Constructors
publicAuthenticationCallback()

Methods
public voidonAuthenticationError(int errorCode, java.lang.CharSequence errString)

Called when an unrecoverable error has been encountered and authentication has stopped.

public voidonAuthenticationFailed()

Called when a biometric (e.g.

public voidonAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result)

Called when a biometric (e.g.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public AuthenticationCallback()

Methods

public void onAuthenticationError(int errorCode, java.lang.CharSequence errString)

Called when an unrecoverable error has been encountered and authentication has stopped.

After this method is called, no further events will be sent for the current authentication session.

Parameters:

errorCode: An integer ID associated with the error.
errString: A human-readable string that describes the error.

public void onAuthenticationSucceeded(BiometricPrompt.AuthenticationResult result)

Called when a biometric (e.g. fingerprint, face, etc.) is recognized, indicating that the user has successfully authenticated.

After this method is called, no further events will be sent for the current authentication session.

Parameters:

result: An object containing authentication-related data.

public void onAuthenticationFailed()

Called when a biometric (e.g. fingerprint, face, etc.) is presented but not recognized as belonging to the user.