Package com.google.accompanist.navigation.animation

Types

AnimatedComposeNavigator
Link copied to clipboard
Navigator that navigates through Composables.

Functions

AnimatedNavHost
Link copied to clipboard
fun AnimatedNavHost(navController: NavHostController, graph: NavGraph, modifier: Modifier = Modifier, contentAlignment: Alignment = Alignment.Center, enterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition? = { _, _ -> fadeIn(animationSpec = tween(700)) }, exitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition? = { _, _ -> fadeOut(animationSpec = tween(700)) }, popEnterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition? = enterTransition, popExitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition? = exitTransition)
Provides in place in the Compose hierarchy for self contained navigation to occur.
fun AnimatedNavHost(navController: NavHostController, startDestination: String, modifier: Modifier = Modifier, contentAlignment: Alignment = Alignment.Center, route: String? = null, enterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition? = { _, _ -> fadeIn(animationSpec = tween(700)) }, exitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition? = { _, _ -> fadeOut(animationSpec = tween(700)) }, popEnterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition? = enterTransition, popExitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition? = exitTransition, builder: NavGraphBuilder.() -> Unit)
Provides in place in the Compose hierarchy for self contained navigation to occur.
composable
Link copied to clipboard
fun NavGraphBuilder.composable(route: String, arguments: List<NamedNavArgument> = emptyList(), deepLinks: List<NavDeepLink> = emptyList(), enterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition?? = null, exitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition?? = null, popEnterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition?? = enterTransition, popExitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition?? = exitTransition, content: @Composable() AnimatedVisibilityScope.(NavBackStackEntry) -> Unit)
navigation
Link copied to clipboard
fun NavGraphBuilder.navigation(startDestination: String, route: String, enterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition? = null, exitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition? = null, popEnterTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> EnterTransition? = enterTransition, popExitTransition: AnimatedContentScope<String>.(initial: NavBackStackEntry, target: NavBackStackEntry) -> ExitTransition? = exitTransition, builder: NavGraphBuilder.() -> Unit)
Construct a nested NavGraph
rememberAnimatedNavController
Link copied to clipboard
fun rememberAnimatedNavController(vararg navigators: Navigator<out NavDestination>): NavHostController
Creates a NavHostController that handles the adding of the ComposeNavigator, DialogNavigator and AnimatedComposeNavigator.