Skip to content

Confirm Passcode Screen

Introduction

This screen follows the set passcode screen in the onboarding process, allowing users to input the passcode again (onboarding can only proceed if the verification passes). The user can also return to the previous screen to input the passcode again.

Confirm Passcode Screen

Examples

val screen = ConfirmPasscodeScreen(getTargetContext())
val css = ConfirmPasscodeScreenSettings.Builder()
        .setDoneButtonText("Ok")
        .setCancelButtonText("Cancel")
        .setInstruction("Instruction")
        .setTitle("Title")
        .build()
screen.initialize(css)
screen.setDoneButtonClickListener {
    screen.clearErrorMessage()
    //verify the passcode.
    if(notMatch) {
        screen.showErrorMessage("Error")
    } else {
        //good to go.
    }
}
ConfirmPasscodeScreen screen = new ConfirmPasscodeScreen(getTargetContext());
ConfirmPasscodeScreenSettings css = new ConfirmPasscodeScreenSettings.Builder()
        .setDoneButtonText("Ok")
        .setCancelButtonText("Cancel")
        .setInstruction("Instruction")
        .setTitle("Title")
        .build();
screen.initialize(css);
screen.setDoneButtonClickListener( v -> {
    screen.clearErrorMessage();
    //verify the passcode.
    if(notMatch) {
        screen.showErrorMessage("Error");
    } else {
        //good to go.
    }
});

Last update: August 12, 2020