EventDispatcher

interface EventDispatcher<in T : TriggerAction, E : Event>

An event dispatcher.

Parameters

T

the type of the action this dispatcher models

E

the type of event that triggers this dispatcher

Functions

Link copied to clipboard
abstract operator fun set(trigger: T, job: (E) -> Unit)

Adds a job to be performed whenever an event triggers the dispatcher through the listener.

Properties

Link copied to clipboard
abstract val listener: ActionListener<T, E>

The listener bound to this dispatcher.

Inheritors

Link copied to clipboard