Skip to content

Activation Screen

Introduction

The Activation screen is used in the activation process, asking users to select the location of the application configuration, either from the Discovery Service, or via scanning a QR code.

There are two types of activation screen, as shown in the animation below. One screen lets the user choose which method to use for activation, either the Discovery Service or via a QR code scan. The Discovery Service allows the user to input a discovery email domain from which to get the application configuration.

Launch Screen

Examples

Because this screen can be used in two different ways, specifying the correct type is very important. The following example uses Discovery Service.

activationScreen.initialize(ActivationScreenSettings.Builder()
    .setChooseDiscoveryButtonText("chooseds")
    .setChooseQRCodeButtonText("chooseqr")
    .setDiscoveryButtonText("ds")
    .setInstruction("instruction")
    .setTitle("title")
    .setScreenType(ActivationScreenSettings.ActivationScreenType.ACTIVATION_METHOD_DISCOVERY)
    .setIllustration(R.drawable.ic_android_white_circle_24dp)
    .build())
ActivationScreenSettings css = new ActivationScreenSettings.Builder()
    .setChooseDiscoveryButtonText("chooseds")
    .setChooseQRCodeButtonText("chooseqr")
    .setDiscoveryButtonText("ds")
    .setInstruction("instruction")
    .setTitle("title")
    .setScreenType(ActivationScreenSettings.ActivationScreenType.ACTIVATION_METHOD_DISCOVERY)
    .setIllustration(R.drawable.ic_android_white_circle_24dp)
    .build();
activationScreen.initialize(css);

Last update: April 5, 2024