emit

abstract fun emit(eventName: String, vararg args: Any?): Boolean

Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

Returns true if the event had listeners, false otherwise.

Return

true if the event had listeners, false otherwise.

Parameters

eventName

The name of the event.

args

The arguments to pass to the listeners.