Skip to content

EULA Screen

Introduction

This screen is used to display end user license agreements (EULA). The following animation shows this screen as part of the onboarding process, where the user must agree to the terms to complete the onboarding process. The agreement terms can come from either the local file system or the network.

EULA Screen

Examples

val screen = EulaScreen(getTargetContext())
screen.initialize(
    EulaScreenSettings.Builder()
        .setAgreeButtonText("Agree")
        .setRejectButtonText("Reject")
        .setTitle("EULA")
        .setEulaUrl("http://www.sap.com") //default to a local HTML file.
        .build()
)
screen.setAgreeClickListener {
   //agreed, good to go.
}
screen.setRejectClickListener {
    //rejected, terminate.
}
screen.setWebViewClientAndLoad(webViewClient)
EulaScreen screen = new EulaScreen(getTargetContext());
EulaScreenSettings ess = new EulaScreenSettings.Builder()
        .setAgreeButtonText("Agree")
        .setRejectButtonText("Reject")
        .setTitle("EULA")
        .setEulaUrl("http://www.sap.com")
        .build();
screen.initialize(ess);
screen.setAgreeClickListener( v -> {
    //agreed, good to go.
});
screen.setRejectClickListener( v -> {
    //rejected, terminate.
});
screen.setWebViewClientAndLoad(webViewClient);

Last update: August 12, 2020