Package 

Class NavGraphBuilderDestinationExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> Unit bottomSheetComposable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, Function1<BottomSheetNavGraphBuilderDestinationScope<T>, Unit> content) Like com.google.accompanist.navigation.material.
      • Methods inherited from class java.lang.Object

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

      • bottomSheetComposable

         final static <T extends Any> Unit bottomSheetComposable(NavGraphBuilder $self, TypedDestinationSpec<T> destination, Function1<BottomSheetNavGraphBuilderDestinationScope<T>, Unit> content)

        Like com.google.accompanist.navigation.material.bottomSheet but accepts a DestinationSpec to get the route, arguments and deep links.

        The content lambda will receive the navigation arguments class (T).

        Useful if you opt to use com.google.accompanist.navigation.animation.AnimatedNavHost instead of com.ramcosta.composedestinations.DestinationsNavHost. This way, you can build the navigation graph in the "vanilla compose navigation" way. If you do this, you should also disable the NavGraphs generation in build.gradle:

        ksp {
            arg("compose-destinations.generateNavGraphs", "false")
        }