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
event Type
The event type to remove the listener for.
callback
The specific callback to remove, or null to remove all listeners of the given type.