Skip to content

EULA Screen Step

The EulaScreenStep displays the Eula Agreement for the given version to the user, who must accept or decline. (The iOS equivalent is EULAStep.swift.)

Input Parameters

Mandatory input parameters:

  • Context – Specifies the caller activity (root activity or logon activity set on the flowContext by the app developer at the start of the flow).

  • secureStore – Specifies the Secure Store which is used to store the data (set on the flowContext).

  • flowPresentationActionHandler – Specifies the Action Handler for Flow Presentation. If the user does not want to specify it's functionality, the default implementation can be used instead. (This is set on the flowContext by the app developer at the start of the flow.)

  • eulaVersion – Specifies the version of the Eula Agreement. The accepted version is saved to the secure store. If the reset is called on this step, the saved version is deleted from the store and the Eula Agreement must be accepted again.

    In the restore scenario, in case the given version differs from the one saved to the secure store, acceptance of the new Eula Agreement is required. Otherwise, the Eula Agreement is skipped. (This setting has to be provided in the step itself.)

Optional input parameters:

  • eulaScreenSettings – Specifies the settings for the Eula Screen. If there are no specified values passed for the view objects of the screen, the default string values are set. (This setting has to be provided in the step itself.)

Using EulaScreenStep

  1. Set the Secure Store and the Flow Presentation Action Handler in the flowContext.
        flowContext.setFlowPresentationActionHandler(new FlowPresentationActionHandlerImpl(this));
  1. Initiate the step setting eulaScreenSettings and defining eulaVersion:
 EulaScreenStep eulaScreenStep = new EulaScreenStep();
  1. Specify the execute method's FlowActionHandler parameter's "onFailure" and "onSuccess" behavior:

     flowManagerService.execute(flow, flowContext, new FlowActionHandler() {
            public void onFailure(Throwable t) {
           //error handling
            public void onSuccess(FlowContext result) {
           //read the result

Last update: April 14, 2021