Get current step

This section contains the necessary methods to get current step.

BiometridOn.getInstance().getCurrentStep(String process_token, Context context);

This method will return all the information about the next required step of the suggested process token.

Callback params

getCurrentStep Callback

Callback

Boolean status

Status of request

StepType s

Current step from process

JsonObject json

JsonObject data from request

Errors e

Errors object

Implementation example

public class ExampleActivity extends Activity implements OnProcessCallback {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_example);

        BiometridOn.getInstance().getCurrentStep("PROCESS_ID", this); 
    }

    @Override
    public void onCurrentStepCallback(Boolean status, StepType s, JsonObject json, Errors e) {

    }

    ...
}

Last updated