Skip to Content

Customize the Onboarding Flow

Learn how to customize the UI screens and add your own logic with extension points for the onboarding flow of SAP BTP SDK for Android.
You will learn
  • How to customize the UI screens for the onboarding flow
  • How to add your own logic by listening to the flow states
  • How to insert your own logic using the action handler
FengHaoyueHaoyue FengApril 26, 2024
Created by
sandeep-tds
January 9, 2023
Contributors
sandeep-tds

Prerequisites

  • Step 1

    The onboarding flow is comprised of the following UI components:

    • End user license agreement (EULA) screen
    • Activation screen
    • Authentication screen
    • Set passcode and verify passcode screens
    • Usage consent screen and crash report consent screens.

    The visibility and the content of each screen will vary depending on the different application configurations and client code customization.

    Which of the following statements are correct?

  • Step 2

    In this section, we explain the onboarding-related callbacks in FlowStateListener based on the WizardFlowStateListener class generated by the SAP BTP SDK Wizard for Android.

    Please see Flows Extension Point and FlowStateListener in the Flows Component of SAP BTP SDK for Android for detailed information on all of the flow states and callbacks.

    Which of the following callbacks are notified in onboarding process?

  • Step 3

    The FlowActionHandler class allows you to insert your own logic at certain points in the onboarding flow, such as adding your own passcode validation or barcode validation after the default rules are executed, adding an algorithm for user name or email obfuscation when displaying the user information, or adding a parser for barcode content when scanning QR codes, etc.

    Similar to the FlowStateListener, you need to extend the FlowActionHandler class to implement the corresponding methods and set your own FlowActionHandler instance for the FlowContext instance using the FlowContext.setFlowStateListener(listener: FlowStateListener) method.

    This section provides some sample implementations for the methods in the FlowActionHandler class.

    Congratulations! You have learned how to customize an onboarding flow!

    Which of the following methods are provided in the FlowActionHandler?

Back to top