NavigationPath

data class NavigationPath(val route: String) : NavigationNode(source)

A lightweight NavigationNode that wraps a plain route string.

Use this when you need to return a route string from an entry selector but don't have a typed screen or graph object available — for example when navigating to a graph route by its ID.

Example:

rootGraph {
entry(
route = { store ->
val auth = store.selectState<AuthState>().value
if (auth.isAuthenticated) NavigationPath("home") else LoginScreen
},
loadingScreen = AuthLoadingScreen
)
}

Constructors

Link copied to clipboard
constructor(route: String)

Properties

Link copied to clipboard
open override val route: String