composable

fun NavGraphBuilder.composable(route: String, arguments: List<NamedNavArgument> = emptyList(), deepLinks: List<NavDeepLink> = emptyList(), enterTransition: AnimatedContentScope<NavBackStackEntry>.() -> EnterTransition?? = null, exitTransition: AnimatedContentScope<NavBackStackEntry>.() -> ExitTransition?? = null, popEnterTransition: AnimatedContentScope<NavBackStackEntry>.() -> EnterTransition?? = enterTransition, popExitTransition: AnimatedContentScope<NavBackStackEntry>.() -> ExitTransition?? = exitTransition, content: @Composable() AnimatedVisibilityScope.(NavBackStackEntry) -> Unit)

Add the Composable to the NavGraphBuilder

Parameters

route

route for the destination

arguments

list of arguments to associate with destination

deepLinks

list of deep links to associate with the destinations

enterTransition

callback to determine the destination's enter transition

exitTransition

callback to determine the destination's exit transition

popEnterTransition

callback to determine the destination's popEnter transition

popExitTransition

callback to determine the destination's popExit transition

content

composable for the destination