Package-level declarations
Types
Link copied to clipboard
What an EventRouter does with an event: the answer of a DispatchStrategy.
Link copied to clipboard
Decides what an EventRouter does with an event while other events are running or waiting.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Is told what an EventRouter does with each event: what the strategy of its handler answered, when its handler started, which effects it emitted, and how its run ended. Pass one to EventRouter(...) to log a screen, to see why an event did nothing, or to check in a test what the router did.
Link copied to clipboard
One thing an EventRouter did with an event, as its RouterObserver is told.
Link copied to clipboard
The state and the effects of one screen.
Functions
Link copied to clipboard
fun <E : UiEvent, S : UiState, F : UiEffect> EventRouter(scope: CoroutineScope, initialState: S, handlers: Collection<EventHandler<*, S, F>>, errorHandler: ErrorHandler<E, S, F>? = null, observer: RouterObserver<E>? = null): EventRouter<E, S, F>
Creates the router of one screen.
Link copied to clipboard
Creates a coroutine scope for a view model and its EventRouter.