FlowCoordinator

FlowCoordinator is responsible for coordinating the navigation_profile inside a Flow. It will step back and forth in Flow and dequeue the current Step. The current StepFragment is passed to the fragmentManager so the Step is in control of that fragment.

Functions

Link copied to clipboard

The actual step where the current flow is pointing to. This method will be returning the new updated Step as soon as the jumpTo method is finished

Link copied to clipboard
fun endFlow()
Link copied to clipboard

It will go back to the previous Step if possible.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun jumpTo(flowLocation: FlowLocation)

Jump to the specified flowLocation.

Link copied to clipboard
fun startFlow(flow: Flow, flowListener: FlowListener? = null)

Starts the flow by displaying its first step in the containerLayout

Link copied to clipboard
fun startFlowIfNew(flow: Flow, flowListener: FlowListener? = null)

Starts the specified flow if there was none set previously. Otherwise just updates the flowListener

Link copied to clipboard
fun startSubFlow(subFlow: Flow)

Starts the subFlow by displaying its first step in the containerLayout. Fails with a IllegalStateException if no root flow is not available.