then

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

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): S

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