Package com.episode6.typed2.navigation.compose
Types
Link copied to clipboard
typealias AsyncNavArg<T, BACKED_BY> = AsyncKey<T, BACKED_BY, PrimitiveKeyValueGetter, PrimitiveKeyValueSetter>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
class IllegalStartScreenException(screen: NavScreen) : IllegalArgumentException
Content copied to clipboard
Link copied to clipboard
class MissingRequiredArgumentException(arg: KeyDescriptor<*, *>, screen: NavScreen) : IllegalArgumentException
Content copied to clipboard
Link copied to clipboard
typealias NavArg<T, BACKED_BY> = Key<T, BACKED_BY, PrimitiveKeyValueGetter, PrimitiveKeyValueSetter>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class NavScreen(val name: String, argPrefix: String = "") : RequiredEnabledKeyNamespace
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun NavGraphBuilder.composableScreen( screen: NavScreen, deepLinks: List<NavDeepLink> = emptyList(), content: @Composable (NavBackStackEntry) -> Unit)
Content copied to clipboard
Link copied to clipboard
fun NavController.launchNavigateTo( screen: NavScreen, scope: CoroutineScope, args: suspend ComposeNavArgBuilder.() -> Unit): Job
Content copied to clipboard
Link copied to clipboard
fun NavHost( navController: NavHostController, startScreen: NavScreen, modifier: Modifier = Modifier, builder: NavGraphBuilder.() -> Unit)
Content copied to clipboard
Link copied to clipboard
inline fun NavController.navigateTo(screen: NavScreen, args: ComposeNavArgBuilder.() -> Unit)
Content copied to clipboard
Replacement for NavController.navigate that allows type-safe setting of arguments Usage: navController.navigateTo(Screen) { set(Screen.Arg1, "someValue") set(Screen.Arg2, 42) }
Link copied to clipboard
Link copied to clipboard
suspend fun <T> ComposeNavArgBuilder.set(key: AsyncNavArg<T, *>, value: T)
Content copied to clipboard