EventInstance
class EventInstance<out E : Event, out C : EventTarget, out T : EventTarget>(target: C, type: EventType<E>)(source)
Functions
Link copied to clipboard
fun <E : Event, C : EventTarget, T : EventTarget, D : E, HasTargets<C, T>> EventInstance<E, C, T>.addHandler(handler: (D) -> Unit): () -> Unit
fun <E : Event, C : EventTarget, T : EventTarget, D : E, HasTargets<C, T>> EventInstance<E, C, T>.addHandler(options: AddEventListenerOptions?, handler: (D) -> Unit): () -> Unit
fun <E : Event, C : EventTarget, T : EventTarget> EventInstance<E, C, T>.addHandler(handler: EventHandler<E, C, T>, options: AddEventListenerOptions? = undefined): () -> Unit
Link copied to clipboard
Link copied to clipboard
suspend operator fun <E : Event, T : EventTarget, D : E, HasTargets<*, T>> EventInstance<E, *, T>.iterator(): SuspendableIterator<D>
Link copied to clipboard
suspend fun <E : Event, C : EventTarget, T : EventTarget, D : E, HasTargets<C, T>> EventInstance<E, C, T>.once(): D
Link copied to clipboard
suspend fun <E : Event, C : EventTarget, T : EventTarget, D : E, HasTargets<C, T>> EventInstance<E, C, T>.subscribe(handler: (D) -> Unit): Job
suspend fun <E : Event, C : EventTarget, T : EventTarget, D : E, HasTargets<C, T>> EventInstance<E, C, T>.subscribe(options: AddEventListenerOptions?, handler: (D) -> Unit): Job
suspend fun <E : Event, C : EventTarget, T : EventTarget> EventInstance<E, C, T>.subscribe(handler: EventHandler<E, C, T>, options: AddEventListenerOptions? = undefined): Job