ActionDispatcher

Immutable callback snapshot extracted from one component's modifier chain.

Custom retained components capture a dispatcher from their incoming modifier and invoke dispatch only from owner-thread input or lifecycle-safe event callbacks. Delivery visits matching handlers from the innermost modifier toward the outermost modifier and stops at ActionResult.Consumed. Callback failures propagate unchanged through the active retained-tree operation.

Functions

Link copied to clipboard
fun <T : Any> dispatch(session: UiSession, key: ActionKey<T>, value: T): ActionResult

Delivers value to handlers registered for key.