目录

CLASS info
public abstract class BioAuthnCallback extends java.lang.Object
Provides callback for the result of the BioAuthnPrompt or FaceManager class. You need to implement the class.

Public Constructor Summary

Method name

BioAuthnCallback()

Constructs a callback provided for BioAuthnPrompt or FaceManager.

Public Method Summary

Return typeMethod name
void

onAuthError(int errorCode, java.lang.CharSequence errString)

Called when an unrecoverable error occurs and the operation is complete. Then, no further operation will be performed on BioAuthnCallback.

void

onAuthHelp(int helpCode, java.lang.CharSequence helpString)

Callback function called to send a notification during 3D facial authentication.

void

onAuthSucceeded(BioAuthnResult result)

Called when the fingerprint authentication or 3D facial authentication is recognized.

void

onAuthFailed()

Called when the fingerprint authentication or 3D facial authentication is valid but cannot be recognized.

Public Constructors

Method
public BioAuthnCallback()
Constructs a callback provided for BioAuthnPrompt or FaceManager.

Public Methods

Method
public void onAuthError(int errorCode, java.lang.CharSequence errString)
Called when an unrecoverable error occurs and the operation is complete. Then, no further operation will be performed on BioAuthnCallback.

Parameters

Parameter nameParameter desc
errorCodeError code. For details, please refer to section 3.4 or 9.4 “Constants.”
errStringReadable error description displayed on the user device.
Method
public void onAuthHelp(int helpCode, java.lang.CharSequence helpString)
Callback function called to send a notification during 3D facial authentication.

Parameters

Parameter nameParameter desc
helpCodeHelp code. For details, please refer to section 9.4 “Constants.”
helpStringReadable help description displayed on the user device.
Method
public void onAuthSucceeded(BioAuthnResult result)
Called when the fingerprint authentication or 3D facial authentication is recognized.

Parameters

Parameter nameParameter desc
resultObject containing fingerprint or 3D facial authentication data.
Method
public void onAuthFailed()
Called when the fingerprint authentication or 3D facial authentication is valid but cannot be recognized.