Attempts to add a listener.
ArgumentNullException if the listener is null.
ArgumentNullException
ArgumentException if the listener already exists.
ArgumentException
The registered Id of the listener.
Id
Clears all listeners.
The number of listeners cleared.
Registers a listener. If the listener already exists, nothing changes and the original Id is returned.
Removes a listener by Id.
The listener or undefined if not found.
Generated using TypeDoc
Attempts to add a listener.
Throws
ArgumentNullException
if the listener is null.Throws
ArgumentException
if the listener already exists.Returns
The registered
Id
of the listener.