RouteResolution

data class RouteResolution(val targetNavigatable: Navigatable, val targetGraphId: String, val extractedParams: Params, val navigationGraphId: String? = null, val isGraphReference: Boolean = false)(source)

The result of resolving a route string to a concrete Navigatable within the graph hierarchy.

Constructors

Link copied to clipboard
constructor(targetNavigatable: Navigatable, targetGraphId: String, extractedParams: Params, navigationGraphId: String? = null, isGraphReference: Boolean = false)

Properties

Link copied to clipboard

Path parameters extracted from the route pattern (e.g. {id}).

Link copied to clipboard

true when this resolution was triggered by a graph route rather than a direct screen route.

Link copied to clipboard

The graph referenced when this was a graph-reference resolution.

Link copied to clipboard

The graph that directly owns targetNavigatable.

Link copied to clipboard

The resolved destination.

Functions

Link copied to clipboard

Returns the graph ID that should be used for path building and hierarchy computation. Prefers navigationGraphId when present, otherwise falls back to targetGraphId.