off

fun <EventType : Any> off(eventType: EventType, callback: Listener<EventType>? = null): EventDispatcher

Remove the event handler(s) for one or more events.

Return

The current EventDispatcher instance for chaining.

Parameters

eventType

The event type to remove the listener for.

callback

The specific callback to remove, or null to remove all listeners of the given type.