BiometridStandard.getInstance().createProcess(AppCombatActivity, ProcessCallback);
class ExampleActivity extends AppCompatActivity implements InitializationCallback{
String TAG = getClass().getSimpleName();
String BIOMETRID_API_SERVER_URL = "your server URL";
String BIOMETRID_APP = "your app";
String BIOMETRID_CREDENTIAL = "your credential";
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
HashMap<String, String> headers = new HashMap<>();
headers.put("HeaderName", "headerValue");
BiometridStandard.getInstance().init(
BIOMETRID_API_SERVER_URL ,
BIOMETRID_APP,
BIOMETRID_ONBIOMETRID_CREDENTIAL,
Language.English,
this);
}
@Override
public void initializationCallback(boolean status, @Nullable Errors errors) {
if(status) createProcess();
}
public void createProcess() {
BiometridStandard.getInstance().createProcess(this, new ProcessCallback() {
@Override
public void getProcessCallback(boolean status, @Nullable String processId, @Nullable Errors errors) {
Log.d(TAG, "createProcessCallback-> status: " + status + " process: " + processId);
if(errors != null)
Log.e(TAG, "createProcessCallback-> error: " + errors.name());
}
});
}
}