Skip to content

nav host ex

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.ui.components.navigation/NavHostEx

NavHostEx

[androidJvm]\

@Composable

fun NavHostEx(modifier: Modifier = Modifier, route: String? = null, startRoute: String? = null, navController: NavHostControllerEx = rememberNavControllerEx(), contentAlignment: Alignment = Alignment.Center, enterTransition: AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition = { fadeIn(animationSpec = tween(700)) }, exitTransition: AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition = { fadeOut(animationSpec = tween(700)) }, popEnterTransition: AnimatedContentTransitionScope<NavBackStackEntry>.() -> EnterTransition = enterTransition, popExitTransition: AnimatedContentTransitionScope<NavBackStackEntry>.() -> ExitTransition = exitTransition, builder: NavGraphBuilderEx.() -> Unit = { screen(route = EmptyScreen()) })

Clone this wiki locally