Legacy Android SDK
2.2.1
2.2.1
  • 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
  • Enums
Powered by GitBook
On this page
  • Method
  • Implementation example

Initialization

In order to use any of the SDK functionalities, the application needs to initialise it first, using the credentials provided during the enrolment on our platform.

Method

BiometridAuth.getInstance().init(
       POLYGON_API_KEY
       POLYGON_API_SECRET,
       POLYGON_API_URL,
       Context
);

init()

method

String key

String corresponding to the provided access key

String secret

String corresponding to the provided access secret

String url

String corresponding to the provided access url

AuthInitialization context

Applicational context

Implementation example

This action can be performed at any time during, but we recommend the following implementation:

public class Example extends Application implements AuthInitializationCallback {

    private final static String BIOMETRID_AUTH_SERVER_URL = "";
    private final static String BIOMETRID_AUTH_CREDENTIAL_KEY = "";
    private final static String BIOMETRID_AUTH_CREDENTIAL_SECRET = "";

    @Override
    public void onCreate() {
        super.onCreate();
        BiometridLibrary.getInstance().init(
                BIOMETRID_AUTH_CREDENTIAL_KEY,
                BIOMETRID_AUTH_CREDENTIAL_SECRET,
                BIOMETRID_AUTH_SERVER_URL,
                this
        );
    }

    @Override
    public void authInitCallback(boolean status, String biometrid_id, @Nullable Errors errors) {
        // callback from init
    }
}

Note:

If the device used already has a record in BiometridAuth, their user id will be returned at init. A BiometridAuth user is only created once and is associated with the device where it was created.

Reinstalling the app won 't remove the user. There is a specific method for user deletion.

PreviousSetupNextNetwork Security Settings

Last updated 6 years ago