IEventDispatcher

Registers listeners and dispatches events.

Inheritors

Functions

Link copied to clipboard
open fun addEventListener(type: String, listener: IEventListener)

Registers a listener with capture disabled.

abstract fun addEventListener(type: String, listener: IEventListener, useCapture: Boolean)

Registers a listener for an event name and capture flag.

Link copied to clipboard
abstract fun dispatchEvent(event: Event)

Delivers an event to the matching listeners.

Link copied to clipboard
open fun dispatchEventWith(type: String)

Creates and dispatches a non-bubbling event without a payload.

open fun dispatchEventWith(type: String, bubbles: Boolean)

Creates and dispatches an event without a payload.

abstract fun dispatchEventWith(type: String, bubbles: Boolean, data: Any?)

Creates and dispatches an event with the given name, bubbling flag, and payload.

Link copied to clipboard
open fun removeEventListener(type: String, listener: IEventListener)

Unregisters a listener registered with capture disabled.

abstract fun removeEventListener(type: String, listener: IEventListener, useCapture: Boolean)

Unregisters a listener using the event name and capture flag supplied during registration.