Skip to content

Set Passcode Screen

Introduction

This screen allows users to input their passcode to unlock the mobile application based on the passcode policies defined in the Mobile Services cockpit.

Set Passcode Screen

The policy indicators below the passcode input field will be displayed based on the passcode policies defined at the server side. For example, if Digits Required is not enabled, that indicator will not be shown. While typing in the passcode, the indicators will be marked as checked if that policy requirement is met. And only after all the checks are done will the Next button be enabled.

The above logic is included in the flow component. If this screen is used independently in your application, the mobile application will need implement this logic.

Examples

val screen = SetPasscodeScreen(getTargetContext()).initialize(
    SetPasscodeScreenSettings.Builder()
        .setTitle("Title")
        .setInstruction("Instruction")
        .setShowSkipButton(true)
        .setDoneButtonText("Done")
        .setSkipButtonText("Skip")
        .build()
)
screen.setDoneButtonClickListener {
    ...
}
setContentView(screen)
SetPasscodeScreen screen = new SetPasscodeScreen(getTargetContext());
SetPasscodeScreenSettings css = new SetPasscodeScreenSettings.Builder()
        .setTitle("Title")
        .setInstruction("Instruction")
        .setShowSkipButton(true)
        .setDoneButtonText("Done")
        .setSkipButtonText("Skip")
        .build();
screen.initialize(css);
screen.setDoneButtonClickListener( v -> {
    ...
});
setContentView(screen);

Last update: September 29, 2020