智能客服
你问我答,随时在线为你解决问题
Class Info |
|---|
public static abstract class AuthenticationCallback 人脸识别回调类,用于返回人脸识别的结果。您需要实现此抽象类。 |
Qualifier and Type |
Method Name and Description |
|---|---|
void |
onAuthenticationError(int errorCode, CharSequence errString) 人脸识别过程中错误信息回调函数,返回识别过程中错误信息。 |
void |
人脸识别失败回调函数,表明本次人脸识别失败。 |
void |
onAuthenticationHelp(int helpCode, CharSequence helpString) 人脸识别过程中提示信息回调函数,返回识别过程中提示信息。 |
void |
onAuthenticationSucceeded(AuthenticationResult result) 人脸识别成功回调函数,表明本次人脸识别成功。 |
Method |
|---|
public void onAuthenticationError(int errorCode, CharSequence errString) 人脸识别过程中错误信息回调函数,返回识别过程中错误信息。 |
Parameters
Name |
Description |
|---|---|
errorCode |
错误码,含义请参见错误码 |
errString |
错误字符串,可以在UI中显示。 |
Method |
|---|
public void onAuthenticationFailed() 人脸识别失败回调函数,表明本次人脸识别失败。 |
Method |
|---|
public void onAuthenticationHelp(int helpCode, CharSequence helpString) 人脸识别过程中提示信息回调函数,返回识别过程中提示信息。 |
Parameters
Name |
Description |
|---|---|
errorCode |
提示信息ID。
|
errString |
提示字符串,可以在UI中显示。 |
Method |
|---|
public void onAuthenticationSucceeded(AuthenticationResult result) 人脸识别成功回调函数,表明本次人脸识别成功。 |
Parameters
Name |
Description |
|---|---|
result |
人脸识别认证结果对象,参见AuthenticationResult。 |