public class NodeNavigator<A extends Activity>
extends ActivityBindingNavigator
Navigator which navigates between interface NodeNavigator.NavigationNode.
You must call .bind before using the navigator and .unbind when bound Activity is about to be paused.
When navigator is being bound to again, it replays the last navigation node.
When navigator is about to be unbound - it calls NavigationNode.navigateFrom
so you will have the chance to dispose resources associated with the node.
public NodeNavigator(@NotNull
java.util.List<? extends io.scanbot.sdk.ui.utils.navigator.NodeNavigator.NavigationNode<A>> nodes)
Navigator which navigates between interface NodeNavigator.NavigationNode.
You must call .bind before using the navigator and .unbind when bound Activity is about to be paused.
When navigator is being bound to again, it replays the last navigation node.
When navigator is about to be unbound - it calls NavigationNode.navigateFrom
so you will have the chance to dispose resources associated with the node.
public 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(@Nullable
android.app.Activity activity,
@NotNull
java.lang.Object event)
public void bind(@NotNull
android.app.Activity activity)
Binds Activity to this navigator.