FlowStack
From Pointui
This is a Global object. You must not create an instance of it as one is always available for your use.
Manages the screens being displayed and can show new screens or return from the current screen so the previous screen is displayed. NOTE: this is a global object so an instance is always available to use – you do not need to ever create additional instances.
A screen is a canvas to draw on. Usually the drawing happens by placing UI Controls on the screen. Screens can stack on top of each other – this is referred to as Branching to a new Screen and is performed using the Branch() method of the FlowStack object. Just think of each screen being a sheet of paper and you placing a new piece of paper on top of the pile. When you want to go back to the previous screen you FlowStack.Return() from the current screen. You can keep Returning until you get back to the home screen.
Contents |
Methods
void Branch(Screen screenToDisplay)
void Branch(Flow flow)
Places the specified screen onto the Flow Stack and sets it to the current screen so it is displayed. If a flow has been specified (AVAILABLE SINCE: 2.0.22b) then the flow is branched to and the first screen in the flow is displayed.
void Return()
void Return(int numberOfScreensToReturn)
Returns from the current screen and removes it from the Flow Stack. It is typically queued for garbage collection soon after. The previous screen on the Stack is then displayed. It is possible to return more than one screen by specifying numberOfScreensToReturn. NOTE: FlowStack.Return() should not be called multiple times directly after each other - if you need to go back multiple screens then call FlowStack.Return() once and supply the numberOfScreensToReturn parameter.
void ReturnToStart()
Returns to the very first screen – the Home screen.
Screen Transition Animations
Describe how it all works.
