NavGraphNavigator
open class NavGraphNavigator : Navigator<NavGraph!>
A Navigator built specifically for NavGraph
elements. Handles navigating to the correct destination when the NavGraph is the target of navigation actions.
Summary
Public constructors |
Construct a Navigator capable of routing incoming navigation requests to the proper destination within a NavGraph .
|
Public constructors
<init>
NavGraphNavigator(@NonNull navigatorProvider: NavigatorProvider)
Construct a Navigator capable of routing incoming navigation requests to the proper destination within a NavGraph
.
Parameters |
navigatorProvider |
NavigatorProvider: NavigatorProvider used to retrieve the correct Navigator to navigate to the start destination |
Public methods
createDestination
@NonNull open fun createDestination(): NavGraph
Creates a new NavGraph
associated with this navigator.
popBackStack
open fun popBackStack(): Boolean