NavigationView

fun NavigationView(destinations: List<NavigationDestination>, modifier: Modifier = Modifier, enterTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition = { fadeIn(animationSpec = tween(700)) }, exitTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition = { fadeOut(animationSpec = tween(700)) }, popEnterTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition = enterTransition, popExitTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition = exitTransition, sizeTransform: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> SizeTransform?? = null)

A navigation view allows navigating between different destinations.

Each destination may pass an argument to the next one. The argument is a Bundle.

Parameters

destinations

The list of possible destinations.

modifier

The modifier to be applied to the layout.

enterTransition

Callback to define enter transitions for destination in this host

exitTransition

Callback to define exit transitions for destination in this host

popEnterTransition

Callback to define popEnter transitions for destination in this host

popExitTransition

Callback to define popExit transitions for destination in this host

sizeTransform

Callback to define the size transform for destinations in this host