NavGraphNavigator
-
Cmn
@Navigator.Name(value = "navigation")
open class NavGraphNavigator : Navigator
DynamicGraphNavigator |
Navigator for graphs in dynamic feature modules. |
A Navigator built specifically for NavGraph elements. Handles navigating to the correct destination when the NavGraph is the target of navigation actions.
Construct a Navigator capable of routing incoming navigation requests to the proper destination within a NavGraph.
Summary
Public constructors |
|
|---|---|
NavGraphNavigator(navigatorProvider: NavigatorProvider) |
Cmn
|
Public functions |
||
|---|---|---|
open NavGraph |
Creates a new |
Cmn
|
open Unit |
navigate( |
Cmn
|
Public properties |
||
|---|---|---|
StateFlow<List<NavBackStackEntry>> |
Gets the backstack of |
Cmn
|
Inherited functions |
|||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited properties |
||||||
|---|---|---|---|---|---|---|
|
Public constructors
NavGraphNavigator
NavGraphNavigator(navigatorProvider: NavigatorProvider)
| Parameters | |
|---|---|
navigatorProvider: NavigatorProvider |
NavigatorProvider used to retrieve the correct |
Public functions
createDestination
open fun createDestination(): NavGraph
Creates a new NavGraph associated with this navigator.
navigate
open fun navigate(
entries: List<NavBackStackEntry>,
navOptions: NavOptions?,
navigatorExtras: Navigator.Extras?
): Unit
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if given destination is not a child of the current navgraph |
Public properties
backStack
val backStack: StateFlow<List<NavBackStackEntry>>
Gets the backstack of NavBackStackEntry associated with this Navigator