Convenience interface for objects that are both an EventEmitter and an EventDispatcher.
Adds an event listener for a specific event.
The type of the event key.
The event to listen to.
The callback function to be invoked when the event is emitted.
An EventHandle with a remove method to unsubscribe the listener.
remove
Dispatches the given event with given payload on the plugin.
Convenience interface for objects that are both an EventEmitter and an EventDispatcher.