Legacy Android SDK
2.2.2
2.2.2
  • Introduction
  • Requirements
  • Downloading
  • Setup
  • Initialization
    • Network Security Settings
  • User Management
    • Create User
    • User status
    • Delete engine enrol
    • Delete User
  • Face Engine
    • Liveness Detection
      • Liveness Customisation
    • Face Verification
    • Camera Helper
  • Voice Engine
    • Initialization
    • Audio Recording
    • Recording Submission
  • Document Engine
    • Validate document
    • Validate entity template
    • Validate entity
  • Enums
Powered by GitBook
On this page

Face Engine

Polygon's voice engine hand in hand with a powerful liveness detection technology.

To implement the face engine in a given activity, it has to implement the interface AuthFaceCallback as shown in the example below.

public class ExampleActivity extends Activity 
                implements AuthFaceCallback {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_example);
    }

    @Override
    public void analyzeFaceCallback(boolean status, SessionType sessionType, FaceResponseStatus faceResponseStatus, JSONObject jsonObject, Errors errors) {

    }

    @Override
    public void findUserByFaceCallback(boolean status, String s, JSONObject jsonObject, Errors errors) {

    }

    @Override
    public void livenessDetectionResult(boolean status, String facemap, String audit, LivenessResultStatus liveness, Errors errors) {

    }

    @Override
    public void authFlowCallback(boolean status, Engine engine, JSONObject jsonObject, Errors errors) {

    }

    @Override
    public void restartSessionCallback(boolean status, JSONObject jsonObject, Errors errors) {

    }
}

PreviousDelete UserNextLiveness Detection

Last updated 4 years ago

For more information on this engine please check our API documentation

here