Package com.episode6.typed2.navigation.compose

Types

Link copied to clipboard
Link copied to clipboard
class ComposeNavArgBuilder : PrimitiveKeyValueSetter
Link copied to clipboard
class IllegalStartScreenException(screen: NavScreen) : IllegalArgumentException
Link copied to clipboard
class MissingRequiredArgumentException(arg: KeyDescriptor<*, *>, screen: NavScreen) : IllegalArgumentException
Link copied to clipboard
typealias NavArg<T, BACKED_BY> = Key<T, BACKED_BY, PrimitiveKeyValueGetter, PrimitiveKeyValueSetter>
Link copied to clipboard
interface NavArgBuilder : PrimitiveKeyBuilder
Link copied to clipboard
open class NavScreen(val name: String, argPrefix: String = "") : RequiredEnabledKeyNamespace
Link copied to clipboard
object NavScreenRoute
Link copied to clipboard
class UnexpectedKeyTypeException(type: KClass<*>) : RuntimeException

Functions

Link copied to clipboard
fun NavGraphBuilder.composableScreen(    screen: NavScreen,     deepLinks: List<NavDeepLink> = emptyList(),     content: @Composable (NavBackStackEntry) -> Unit)
Link copied to clipboard
fun NavController.launchNavigateTo(    screen: NavScreen,     scope: CoroutineScope,     args: suspend ComposeNavArgBuilder.() -> Unit): Job
Link copied to clipboard
fun NavHost(    navController: NavHostController,     startScreen: NavScreen,     modifier: Modifier = Modifier,     builder: NavGraphBuilder.() -> Unit)
Link copied to clipboard
fun NavController.navigateTo(screen: NavScreen)

inline fun NavController.navigateTo(screen: NavScreen, args: ComposeNavArgBuilder.() -> Unit)

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
fun ComposeNavArgBuilder.remove(key: AsyncNavArg<*, *>)
fun ComposeNavArgBuilder.remove(key: NavArg<*, *>)
Link copied to clipboard
suspend fun <T> ComposeNavArgBuilder.set(key: AsyncNavArg<T, *>, value: T)
fun <T> ComposeNavArgBuilder.set(key: NavArg<T, *>, value: T)