eventHandler
open fun eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.() -> Unit): () -> Unit(source)
Creates a function which builds a WorkflowAction from the given update function, and immediately passes it to actionSink. Handy for attaching event handlers to renderings.
Parameters
name
A string describing the update, included in the action's toString as a debugging aid
update
Function that defines the workflow update.
open fun <EventT> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(EventT) -> Unit): (EventT) -> Unit(source)
open fun <E1, E2> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2) -> Unit): (E1, E2) -> Unit(source)
open fun <E1, E2, E3> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3) -> Unit): (E1, E2, E3) -> Unit(source)
open fun <E1, E2, E3, E4> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3, E4) -> Unit): (E1, E2, E3, E4) -> Unit(source)
open fun <E1, E2, E3, E4, E5> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3, E4, E5) -> Unit): (E1, E2, E3, E4, E5) -> Unit(source)
open fun <E1, E2, E3, E4, E5, E6> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3, E4, E5, E6) -> Unit): (E1, E2, E3, E4, E5, E6) -> Unit(source)
open fun <E1, E2, E3, E4, E5, E6, E7> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3, E4, E5, E6, E7) -> Unit): (E1, E2, E3, E4, E5, E6, E7) -> Unit(source)
open fun <E1, E2, E3, E4, E5, E6, E7, E8> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3, E4, E5, E6, E7, E8) -> Unit): (E1, E2, E3, E4, E5, E6, E7, E8) -> Unit(source)
open fun <E1, E2, E3, E4, E5, E6, E7, E8, E9> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3, E4, E5, E6, E7, E8, E9) -> Unit): (E1, E2, E3, E4, E5, E6, E7, E8, E9) -> Unit(source)
open fun <E1, E2, E3, E4, E5, E6, E7, E8, E9, E10> eventHandler(name: () -> String = { "eventHandler" }, update: WorkflowAction.Updater<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.(E1, E2, E3, E4, E5, E6, E7, E8, E9, E10) -> Unit): (E1, E2, E3, E4, E5, E6, E7, E8, E9, E10) -> Unit(source)