Submit ID document
This section contains the necessary methods to submit ID Card.
The following method uploads two images to our platform. This images should represent the front and back side of citizenship card.
Since the validation of this document takes longer than normal procedures, the developer has to wait for an answer in the onPusherEventsCallback and expecting the event "idcard-processed".
BiometridOn.getInstance().onDataSubmissionCallback(String process_token, DocType docType, ArrayList<String> files, Context context);
Callback params
submitIdCard Callback
Callback
Boolean status
Status of request
StepType previous
Previous step
StepType next
Next step
JsonObject json
JsonObject data from request
Errors e
Errors object
Implementation example
public class ExampleActivity extends Activity implements OnProcessCallback {
private ArrayList<String> files;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_example);
BiometridOn.getInstance().submitIdDocument("PROCESS_ID", DocType.IdCard, files, this);
}
@Override
public void onDataSubmissionCallback(Boolean status, StepType previous, StepType next, JsonObject json, Errors e) {
}
@Override
public void onPusherEventsCallback(@NonNull String s, @NonNull String event, @NonNull JSONObject jsonObject, @Nullable Errors errors) {
}
...
}
Last updated