Package 

Class NavGraphBuilderKt

    • Method Detail

      • composable

        @Deprecated(message = Migrate to Androidx navigation-compose NavGraphBuilder.composable with the same parameters. To migrate, change import from com.google.accompanist.navigation.animation.composable to androidx.navigation.compose.composable.) final static Unit composable(NavGraphBuilder $self, String route, List<NamedNavArgument> arguments, List<NavDeepLink> deepLinks, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function2<AnimatedVisibilityScope, NavBackStackEntry, Unit> content)

        Add the Composable to the NavGraphBuilder

        Parameters:
        route - route for the destination
        arguments - list of arguments to associate with destination
        deepLinks - list of deep links to associate with the destinations
        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
        content - composable for the destination
      • navigation

        @Deprecated(message = Migrate to Androidx navigation-compose NavGraphBuilder.navigation with the same parameters. To migrate, change import from com.google.accompanist.navigation.animation.navigation to androidx.navigation.compose.navigation.) final static Unit navigation(NavGraphBuilder $self, String startDestination, String route, List<NamedNavArgument> arguments, List<NavDeepLink> deepLinks, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> enterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> exitTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, EnterTransition> popEnterTransition, Function1<AnimatedContentTransitionScope<NavBackStackEntry>, ExitTransition> popExitTransition, Function1<NavGraphBuilder, Unit> builder)

        Construct a nested NavGraph

        Parameters:
        startDestination - the starting destination's route for this NavGraph
        route - the destination's unique route
        arguments - list of arguments to associate with destination
        deepLinks - list of deep links to associate with the destinations
        enterTransition - callback to define enter transitions for destination in this NavGraph
        exitTransition - callback to define exit transitions for destination in this NavGraph
        popEnterTransition - callback to define pop enter transitions for destination in this NavGraph
        popExitTransition - callback to define pop exit transitions for destination in this NavGraph
        builder - the builder used to construct the graph