NavigationGraphBuilder

Constructors

Link copied to clipboard
constructor(route: String)

Functions

Link copied to clipboard
fun entry(screen: Screen)
fun entry(route: suspend (StoreAccessor) -> NavigationNode, loadingThreshold: Duration = 200.milliseconds)
Link copied to clipboard
Link copied to clipboard
fun intercept(guard: NavigationGuard, loadingThreshold: Duration = 200.milliseconds, block: NavigationGraphBuilder.() -> Unit)

Define a protected region where all nested graphs and screens require an intercept guard.

Link copied to clipboard
fun layout(layoutComposable: @Composable (@Composable () -> Unit) -> Unit)
Link copied to clipboard
fun modals(vararg modals: Modal)
Link copied to clipboard
fun screenGroup(screenGroup: ScreenGroup)
Link copied to clipboard
fun screens(vararg screens: Screen)
Link copied to clipboard
fun start(screen: Screen)

Set the start destination to a static screen.

fun start(graphId: String)

Set the start destination to another graph by its route ID.

fun start(route: suspend (StoreAccessor) -> NavigationNode, loadingThreshold: Duration = 200.milliseconds)

Define a dynamic start destination evaluated at navigation time.

Link copied to clipboard
fun startGraph(graphId: String)
Link copied to clipboard
fun startScreen(screen: Screen)