Get Step State
This section contains the necessary methods to get selected step state.
You have 4 options to get step state:
- CurrentStep 
- CompletedSteps 
BiometridStandard.getInstance().getStepState(processToken, StepState.CurrentStep, processCallback);
BiometridStandard.getInstance().getStepState(processToken, StepState.CompletedSteps, processCallback);Parameter
Description
String processToken
Process token
StepState state
StepState enum
ProcessCallback callback
callback
Implementation example
public void getCurrentStep() {
 BiometridStandard.getInstance().getStepState(processToken, StepState.CurrentStep, new ProcessCallback() {
    @Override
    public void getStepStateCallback(boolean status, @Nullable String response, @Nullable Errors errors) {
        Log.d(TAG, "getStepStateCallback-> status: "  + status + " response: " + response);
        if(errors != null)
            Log.e(TAG, "getStepStateCallback-> error: " + errors.name());
    }
  });
}public void getCompletedSteps() {
   BiometridStandard.getInstance().getStepState(processToken, StepState.CompletedSteps, new ProcessCallback() {
    @Override
    public void getStepStateCallback(boolean status, @Nullable String response, @Nullable Errors errors) {
        Log.d(TAG, "getStepStateCallback-> status: " + status + " response: " + response);
        if(errors != null)
            Log.e(TAG, "getStepStateCallback-> error: " + errors.name());
    }
  });
}Was this helpful?
