Initialization
In order to use any of the SDK functionalities, the application needs to initialize it first, using the credentials provided during the enrolment on our platform.
BiometridOn.getInstance().init(
POLYGON_API_URL
POLYGON_API_KEY,
POLYGON_API_SECRET,
POLYGON_API_FLOW_ID,
CONTEXT
);
Name:
Description:
POLYGON_API_KEY
Key credential provided
POLYGON_API_SECRET
Secret credential provided
POLYGON_API_FLOW_ID
ID credential provided
POLYGON_API_URL
URL credential provided
Implementation example
public class Example extends Application implements OnInitializationCallback {
private final static String BIOMETRID_SERVER_URL = "";
private final static String BIOMETRID_CREDENTIAL_KEY = "";
private final static String BIOMETRID_CREDENTIAL_SECRET = "";
private final static String BIOMETRID_CREDENTIAL_FLOW_ID = "";
@Override
public void onCreate() {
super.onCreate();
BiometridLibrary.getInstance().init(
POLYGON_API_URL,
POLYGON_API_KEY,
POLYGON_API_SECRET,
POLYGON_API_FLOW_ID,
getApplicationContext()
);
}
@Override
public void onInitCallback(@NonNull Boolean aBoolean, @Nullable Errors errors) {
}
}
Upon receiving a positive response at the initialisation callback the SDK will be ready to use.
Last updated