composable

inline fun <T : Any> NavGraphBuilder.composable(typeMap: Map<KType, @JvmSuppressWildcards NavType<*>> = emptyMap(), deepLinks: List<NavDeepLink> = emptyList(), noinline content: @Composable (NavBackStackEntry) -> Unit)

Add the Composable to the NavGraphBuilder.

This implements type safe navigation for Wear.

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.

deepLinks

list of deep links to associate with the destinations

content

composable for the destination