public NodeNavigator.NavigationNode<A extends Activity>
Node which can be navigated to and from.
Note that implementation MUST be immutable and all methods must produce the same outcome no matter how many times they were called (in other words - be idempotent).
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleNavigationEvent() |
boolean |
interceptBackNavigation() |
boolean |
isActionNode() |
void |
navigateFrom()
Called when this node is becoming inactive. In other words - contents of the node should be hidden. You should revert all changes made in
|
void |
navigateTo()
Called when this node is on the top of navigation queue. In other words - show contents of the node. Take special care to revert ALL changes made at this step in
. |
void navigateTo()
Called when this node is on the top of navigation queue. In other words - show contents of the node.
Take special care to revert ALL changes made at this step in .NodeNavigator.NavigationNode.navigateFrom
void navigateFrom()
Called when this node is becoming inactive. In other words - contents of the node should be hidden.
You should revert all changes made in NodeNavigator.NavigationNode.navigateTo
NodeNavigator.NavigationNode.navigateToboolean interceptBackNavigation()
true if this node intercepts NodeNavigator.navigateBack event and therefore event should be cancelled. false if this node does not intercept NodeNavigator.navigateBack and therefore back navigation will be performed.boolean isActionNode()
true if this node should remain in navigation history (i.e. should be restored during NodeNavigator.bind or be reachable by NodeNavigator.navigateBack). false if node is fire-and-forget.boolean canHandleNavigationEvent()
true if this node is capable of handling given navigation event. false if this node can't handle this event and it therefore should be passed further.