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.
Subscribes the callback bound to object to this event.
Optionalcallback: ((...args: T) => ReturnType)Rest...args: TSubscribes the subscriber to this event.
Invokes this event.
Rest...args: TRemoves 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) => ReturnType)Rest...args: TIf the object was added using addWeak you must use removeWeak to remove it instead.
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.