Function

bottomSheet

Add the content Composable as bottom sheet content to the NavGraphBuilder

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
public fun NavGraphBuilder.bottomSheet(
    route: String,
    arguments: List<NamedNavArgument> = emptyList(),
    deepLinks: List<NavDeepLink> = emptyList(),
    content: @Composable ColumnScope.(backstackEntry: NavBackStackEntry) -> Unit,
)

Add the content Composable as bottom sheet content 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
content the sheet content at the given destination

Common
public inline fun <reified T : Any> NavGraphBuilder.bottomSheet(
    typeMap: Map<KType, @JvmSuppressWildcards NavType<*>> = emptyMap(),
    arguments: List<NamedNavArgument> = emptyList(),
    deepLinks: List<NavDeepLink> = emptyList(),
    noinline content: @Composable ColumnScope.(backstackEntry: NavBackStackEntry) -> Unit,
)

Add the content Composable as bottom sheet content to the NavGraphBuilder

Parameters

T route from a KClass for the destination
typeMap map of destination arguments' kotlin type KType to its respective custom NavType. May be empty if T does not use custom NavTypes.
arguments list of arguments to associate with destination
deepLinks list of deep links to associate with the destinations
content the sheet content at the given destination