listenerCount
fun <T : EventEmitter, P : JsTuple> T.listenerCount(type: EventType<T, P>, listener: (P) -> Unit = undefined.unsafeCast<Nothing>()): Double(source)
Returns the number of listeners listening for the event named eventName
. If listener
is provided, it will return how many times the listener is found in the list of the listeners of the event.
Since
v3.2.0
Parameters
type
The name of the event being listened for
listener
The event handler function