-
public interface PLYFlowListenerInterface to handle navigation between steps in a flow.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonNextStepRequest(String actionId, Boolean isConditional, PLYTransition transition)Called when the user requests to navigate to the next step in the flow. abstract UnitonCloseRequested(Boolean all)Called when the user requests to close the flow or a step in the flow. abstract PLYPresentationViewonPresentationRequest(Context context, PLYPresentationProperties properties)Called when a child fragment requests to fetch the presentation to be displayed. abstract UnitonPresentationReady(PLYPresentation presentation)Called when a presentation is ready to be displayed. -
-
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.
-
onPresentationRequest
abstract PLYPresentationView onPresentationRequest(Context context, PLYPresentationProperties properties)
Called when a child fragment requests to fetch the presentation to be displayed.
- Parameters:
context- The context of the current activity.properties- The presentation properties to be used for fetching the presentation.
-
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.
-
-
-
-