addOnceListener

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

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

Parameters

eventType

the EventType for which the listener should be called

listener

the implementation of EventListener for this EventType