NavigationState
class NavigationState(val startKey: NavKey, val topLevelStack: NavBackStack<NavKey>, val subStacks: Map<NavKey, NavBackStack<NavKey>>)(source)
Holds the app's navigation state. This class never modifies itself — all changes go through Navigator, which keeps "what the state is" separate from "what a navigation event does".
Constructors
Link copied to clipboard
constructor(startKey: NavKey, topLevelStack: NavBackStack<NavKey>, subStacks: Map<NavKey, NavBackStack<NavKey>>)
Properties
Link copied to clipboard
The flattened back stack NavDisplay renders: every visited top-level destination's stack, in the order those destinations were visited.
Link copied to clipboard
The destination actually on screen.
Link copied to clipboard
The back stack belonging to currentTopLevelKey.
Link copied to clipboard
The top-level destination currently shown, i.e. the selected navigation bar item.
Link copied to clipboard
Every top-level destination.
Link copied to clipboard
The order in which top-level destinations were visited.