Package-level declarations

Types

Link copied to clipboard
class NavigationState(val startKey: NavKey, val topLevelStack: NavBackStack<NavKey>, val subStacks: Map<NavKey, NavBackStack<NavKey>>)

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".

Link copied to clipboard
class Navigator(val state: NavigationState)

The single entry point for navigation events. NavigationState holds the state; this class is the only thing that changes it.

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.

Functions

Link copied to clipboard

The decorators every destination is wrapped in.

Link copied to clipboard

Creates a NavigationState that survives configuration changes and process death.