EventDispatcher

Functions

Link copied to clipboard
abstract fun addListener(listener: EventDispatcherListener)

Add a listener to this EventDispatcher.

Link copied to clipboard
abstract fun dispatchAllEvents()
Link copied to clipboard
abstract fun dispatchEvent(event: Event<*>)

Sends the given Event to JS, coalescing eligible events if JS is backed up.

Link copied to clipboard
Link copied to clipboard
abstract fun removeListener(listener: EventDispatcherListener)

Remove a listener from this EventDispatcher.