public class NodeNavigator<A extends Activity>
extends ActivityBindingNavigator
Navigator which navigates between NavigationNode.
You must call before using the navigator and NodeNavigator.bind when bound Activity is about to be paused. NodeNavigator.unbind
When navigator is being bound to again, it replays the last navigation node.
When navigator is about to be unbound - it calls so you will have the chance to dispose resources associated with the node.NodeNavigator.NavigationNode.navigateFrom
| Constructor and Description |
|---|
NodeNavigator() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
A |
getActivity() |
void |
navigate() |
boolean |
navigateBack()
Navigate back in the stack. If there are no more nodes in the history - activity will be finished.
|
void |
unbind() |
bind, getActivity, navigate, navigate, unbindpublic boolean navigateBack()
Navigate back in the stack.
If there are no more nodes in the history - activity will be finished.
true if there are still some elements in history. false if navigation stack is now empty.public void navigate()
public void bind()
public void unbind()
public A getActivity()