Optionalsubscriber: EventSubscriberTypes<T, ReturnType>OptionaldidChangeListeningState: EventDidChangeListeningStateDetermines whether the event has at least 1 subscriber.
Determines whether the event has at least 1 subscriber.
Gets the number of subscribers.
Subscribes the subscriber to this event.
Optionalcallback: (...args: T) => ReturnTypeSubscribes the subscriber to this event.
Removes all subscribers.
Removes the subscriber from this event.
If the object was added using addWeak you must use removeWeak to remove it instead.
Removes the callback for the specified object from this event.
Optionalcallback: (...args: T) => ReturnTypeIf the object was added using addWeak you must use removeWeak to remove it instead.
Removes all registered subscriptions for subscriber from this event.
Removes all registered subscriptions for the subscriber from this event that were registered using addWeak.
The Event class implements a multi-cast event that can invoke any number of lambdas, functions or other events that have subscribed to the event.