Legacy On Android SDK
1.7.0
1.7.0
  • Introduction
  • Overview
    • Requirements
    • Prerequisites
    • Downloading
    • Setup
    • Initialization
      • Custom headers
    • BiometridOn
      • Create process
      • Get current step
      • Get previous step
      • Get remaining steps
      • Get completed steps
      • Get process data
      • Submit form
      • Submit file
      • Submit selfie with ID card
      • Submit form with files
      • Submit multiple files
      • Submit ID document
      • Video conference
    • Liveness Detection
      • Basic detection
      • Liveness Customisation
      • Generate Liveness Surface
  • Enums
    • StepType
    • VideoConferenceState
    • Doctype
Powered by GitBook
On this page
  1. Overview

BiometridOn

This section contains the necessary methods to interact with BiometridOn.

BiometridOn is a class that contains many methods described along the documentation.

User interactions available through the BiometridOn :

  • Create a process: Create a new process.

  • Get current step: Get the process current step.

  • Get previous step: Get the process previous step's.

  • Get remaining steps: Get the process remaining step's.

  • Get completed steps: Get the process completed steps'.

  • Get process data: Get process data values.

  • Delete process: Delete a process.

  • Submit form: Send the form data.

  • Submit file: Send the files.

  • Submit form with files: Send the form with files.

  • Submit multiple files: Send the multiple files.

  • Submit ID Card: Send the front and back images from ID Card.

  • Start videoconference: Start or join the videoconference.

To follow the logical flow, before anything else, a process must be created.

The context responsible for this has to implement the interface OnProcessCallback.

public class ExampleActivity extends Activity implements OnProcessCallback {

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

    @Override
    public void onCreateProcessCallback(Boolean status, String token, StepType step, JSONObject data, Errors errors) {

    }

    @Override
    public void onCurrentStepCallback(Boolean aBoolean, StepType step, JSONObject data, Errors errors) {

    }

    @Override
    public void onSubmitFormCallback(Boolean aBoolean, StepType step, JSONObject data, Errors errors) {

    }

    @Override
    public void onPusherEventsCallback(String channel_name, String event, JSONObject data, Errors errors) {

    }

    ...
}
PreviousCustom headersNextCreate process

Last updated 6 years ago