navigation
fun NavGraphBuilder.navigation(startDestination: String, route: String, enterTransition: AnimatedContentScope<NavBackStackEntry>.() -> EnterTransition?? = null, exitTransition: AnimatedContentScope<NavBackStackEntry>.() -> ExitTransition?? = null, popEnterTransition: AnimatedContentScope<NavBackStackEntry>.() -> EnterTransition?? = enterTransition, popExitTransition: AnimatedContentScope<NavBackStackEntry>.() -> ExitTransition?? = exitTransition, builder: NavGraphBuilder.() -> Unit)
Content copied to clipboard
Construct a nested NavGraph
Return
the newly constructed nested NavGraph
Parameters
startDestination
the starting destination's route for this NavGraph
route
the destination's unique route
enterTransition
callback to define enter transitions for destination in this NavGraph
exitTransition
callback to define exit transitions for destination in this NavGraph
popEnterTransition
callback to define pop enter transitions for destination in this NavGraph
popExitTransition
callback to define pop exit transitions for destination in this NavGraph
builder
the builder used to construct the graph