NavGraphNavigator

open class NavGraphNavigator : Navigator<NavGraph!>
kotlin.Any
   ↳ androidx.navigation.Navigator<androidx.navigation.NavGraph>
   ↳ androidx.navigation.NavGraphNavigator

A Navigator built specifically for NavGraph elements. Handles navigating to the correct destination when the NavGraph is the target of navigation actions.

Summary

Inherited constants
Public constructors
<init>(context: Context)

Construct a Navigator capable of routing incoming navigation requests to the proper destination within a NavGraph.

Public methods
open Unit
navigate(destination: NavGraph, args: Bundle?, navOptions: NavOptions?)

open NavGraph

Creates a new NavGraph associated with this navigator.

open Boolean

Inherited functions

Public constructors

<init>

NavGraphNavigator(context: Context)

Construct a Navigator capable of routing incoming navigation requests to the proper destination within a NavGraph.

Parameters
context Context:

Public methods

navigate

open fun navigate(destination: NavGraph, args: Bundle?, navOptions: NavOptions?): Unit

createDestination

open fun createDestination(): NavGraph

Creates a new NavGraph associated with this navigator.

Return
NavGraph:

popBackStack

open fun popBackStack(): Boolean