onChangeEvent
inline fun <T : Actor> T.onChangeEvent(crossinline listener: T.(event: ChangeListener.ChangeEvent) -> Unit): ChangeListener
Attaches a ChangeListener to this actor.
Return
ChangeListener instance.
Parameters
listener
invoked each time a ChangeEvent is fired for this actor. Consumes the triggered ChangeEvent and the Actor that the listener was originally attached to as this
.