defineDestination
fun defineDestination(id: DestinationId<*, *>, enterTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?? = null, exitTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition?? = null, popEnterTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition?? = enterTransition, popExitTransition: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition?? = exitTransition, sizeTransform: @JvmSuppressWildcards AnimatedContentTransitionScope<NavBackStackEntry>.() -> SizeTransform?? = null, content: @Composable (AnimatedContentScope) -> Unit): NavigationDestination
Helper method for creating a composable NavigationDestination.
Parameters
id
The destination identifier.
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
sizeTransform
Callback to determine the destination's sizeTransform.
content
The composable function that will be used to render the content.