NavigationController

Constructors

Link copied to clipboard
constructor(startDestinations: List<Destination>, onScreenChange: (String) -> Unit)
constructor(startDestinations: List<Destination>, onScreenChange: (String) -> Unit, resultTtl: Duration)
constructor(startDestinations: List<Destination>, onScreenChange: (String) -> Unit, resultSource: ResultSource)

Properties

Link copied to clipboard

Read-only result source backed by this controller's store.

Functions

Link copied to clipboard
inline fun <T : Any> consume(scope: CoroutineScope, noinline block: suspend (T) -> Unit): Job

Consumes results of type T in scope. See ResultSource.consume.

Link copied to clipboard
fun <T : Destination> navigate(destination: T): Boolean

Expected to be called from the main/UI thread.

Link copied to clipboard
inline fun <T : Any> observeResults(): Flow<Consumable<T>>

Observes results of type T. See ResultSource.observeResults.