then

infix fun <E : Event> E.then(handler: S.(E) -> Boolean): <Error class: unknown class>

specify a handler for this event.

in the given handler, you can perform things on this component, such as recoloring and rotating

Return true to consume the event. True by default.

Since

0.19.2

See also


@JvmName(name = "to")
infix fun <E : Event> E.then(handler: S.(E) -> Unit): <Error class: unknown class>

specify a handler for this event.

in the given handler, you can perform things on this component, such as recoloring and rotating.

Return true to consume the event. True by default.

Since

0.19.2

See also