EventListenerChildren

Functions

Link copied to clipboard
open fun <T : BEvent> dispatch(event: T): Boolean
open fun <T : BEvent> dispatch(type: EventType<T>, event: T, result: EventResult? = null): Boolean

abstract fun <T : BEvent> dispatch(type: EventType<T>, event: T, result: EventResult?, up: Boolean, down: Boolean): Boolean

Dispatched a event of type that will execute all the handlers registered with onEvents in this object and its children.

Link copied to clipboard
open fun <T : BEvent> dispatchDown(type: EventType<T>, event: T, result: EventResult? = null): Boolean
Link copied to clipboard
Link copied to clipboard
open fun <T : BEvent> dispatchUp(type: EventType<T>, event: T, result: EventResult? = null): Boolean
Link copied to clipboard
Link copied to clipboard
open fun <T : BEvent> dispatchWithResult(event: T, out: EventResult = EventResult()): EventResult
Link copied to clipboard
abstract fun <T : BEvent> onEvent(type: EventType<T>, handler: (T) -> Unit): Closeable

Registers a handler block to be executed when an event of type is dispatched

Link copied to clipboard
abstract fun onEventCount(type: EventType<*>): Int
Link copied to clipboard
open fun <T : BEvent> onEvents(vararg etypes: EventType<out T>, handler: (T) -> Unit): Closeable
Link copied to clipboard