Package 

Class AnimatedNavHostKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit AnimatedNavHost(NavHostController navController, String startDestination, Modifier modifier, Alignment contentAlignment, String route, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function1<NavGraphBuilder, Unit> builder) Provides in place in the Compose hierarchy for self contained navigation to occur.
      final static Unit AnimatedNavHost(NavHostController navController, NavGraph graph, Modifier modifier, Alignment contentAlignment, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition) Provides in place in the Compose hierarchy for self contained navigation to occur.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • AnimatedNavHost

        @Deprecated(message = AnimatedNavHost has been migrated back into Androidx Navigation. Replace with navigation-compose NavHost with the same parameters. Change import from com.google.accompanist.navigation.animation.AnimatedNavHost to androidx.navigation.compose.NavHost.)@Composable() final static Unit AnimatedNavHost(NavHostController navController, String startDestination, Modifier modifier, Alignment contentAlignment, String route, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function1<NavGraphBuilder, Unit> builder)

        Provides in place in the Compose hierarchy for self contained navigation to occur.

        Once this is called, any Composable within the given NavGraphBuilder can be navigated to from the provided navController.

        The builder passed into this method is remembered. This means that for this NavHost, the contents of the builder cannot be changed.

        Parameters:
        navController - the navController for this host
        startDestination - the route for the start destination
        modifier - The modifier to be applied to the layout.
        route - the route for the graph
        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
        builder - the builder used to construct the graph
      • AnimatedNavHost

        @Deprecated(message = AnimatedNavHost has been migrated back into Androidx Navigation. Replace with navigation-compose NavHost with the same parameters. Change import from com.google.accompanist.navigation.animation.AnimatedNavHost to androidx.navigation.compose.NavHost.)@Composable() final static Unit AnimatedNavHost(NavHostController navController, NavGraph graph, Modifier modifier, Alignment contentAlignment, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition)

        Provides in place in the Compose hierarchy for self contained navigation to occur.

        Once this is called, any Composable within the given NavGraphBuilder can be navigated to from the provided navController.

        Parameters:
        navController - the navController for this host
        graph - the graph for this host
        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