Face Authentication
Explains how to integrate a face authentication
Implementation
Example to Start a Face Authentication
void faceAuthentication(String verificationId) {
FaceAuthenticationParams faceAuthenticationParams = new FaceAuthenticationParamsWithClientSecret(
"< client id >",
"< client secret >",
verificationId
R.style.AuthenteqThemeBase // optional
);
FaceAuthenticationActivity.startForResult(
activity,
MY_REQUEST_FACEAUTH_CODE,
faceAuthenticationParams
);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
if (requestCode == MY_REQUEST_FACEAUTH_CODE) {
if (resultCode == RESULT_OK) {
String code = FaceAuthenticationActivity.getResult(data);
// Check face authentication result with the CODE provided
} else {
Throwable throwable = FaceAuthenticationActivity.getError(data);
// Handle error
} else {
super.onActivityResult(requestCode, resultCode, data);
}
}
}Get Face Authentication Result
Obtain the result of a face authentication
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
Last updated
Was this helpful?