public class ScreenManager
extends Object implements Manager


Manages the stack of Screens and their respective Lifecycles.


Public methods

int getStackSize()

Returns the current stack size.

Screen getTop()

Returns the Screen that is at the top of the stack.

void pop()

Pops the top Screen from the stack.

void popTo(String marker)

Removes screens from the top of the stack until a Screen which has the given marker is found, or the root has been reached.

void popToRoot()

Removes all screens from the stack until the root has been reached.

void push(Screen screen)

Pushes the screen to the stack.

void pushForResult(Screen screen, OnScreenResultListener onScreenResultListener)

Pushes a Screen, for which you would like a result from, onto the stack.

void remove(Screen screen)

Removes the screen from the stack.

Inherited methods