addListener

open fun addListener(eventType: String, listener: EventListener)

Convenience method to add an EventListener for the given type using the EventEmitter.on() method.

Parameters

eventType

the EventType for which the listener should be called

listener

the implementation of EventListener for this EventType