Package 

Interface PLYFlowListener


  • 
    public interface PLYFlowListener
    
                        

    Interface to handle navigation between steps in a flow.

    • Method Detail

      • onNextStepRequest

         abstract Unit onNextStepRequest(String actionId, Boolean isConditional, PLYTransition transition)

        Called when the user requests to navigate to the next step in the flow.

        Parameters:
        actionId - The action ID that triggered the request.
        isConditional - Indicates if the action is conditional.
        transition - The transition to be applied when navigating to the next step: animation, background color and height (if applicable).
      • onCloseRequested

         abstract Unit onCloseRequested(Boolean all)

        Called when the user requests to close the flow or a step in the flow.

        Parameters:
        all - If true, the entire flow is closed and the activity finishes.
      • onPresentationReady

         abstract Unit onPresentationReady(PLYPresentation presentation)

        Called when a presentation is ready to be displayed.

        Parameters:
        presentation - The PLYPresentation that is ready to be displayed.
      • onCustomScreenLoaded

         abstract Unit onCustomScreenLoaded(Integer containerViewId, PLYCustomScreen customScreen, PLYPresentation presentation)

        Called when a custom screen has been loaded and is ready to be displayed.

        Parameters:
        containerViewId - The ID of the container ViewGroup where the custom screen should be added
        customScreen - The custom screen (View or Fragment) to display, or null
        presentation - The presentation associated with this custom screen