Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
themeEclipse
ValidateOtpTask.runTask(new TaskListener() {
    @Override
    public void onTaskSuccess() {
    }

    @Override
    public void onTaskError(String errorMessage, int errorCode) {
        if (errorCode == OTP_VALIDATION_FAILED_ERROR) {
            // An invalid OTP value was entered by the user.
        } else {
            // Another error occurred processing the request.
        }
    }
}, serverUrl, usernamemSessiontoken, otpCode);