Subscribable
class SubscribableTValueTHandler extends EventHandlerTValue = EventHandlerTValue
Provides safe access to the public interface of EventDispatcherBase.
External classes can use it to subscribe to an event without being able to dispatch it.
Type Parameters
TValueThe type of the argument passed to subscribers.
THandler extends EventHandlerTValue = EventHandlerTValueThe type of the callback function.
Extended by
Constructors
constructor
public new SubscribableTValueTHandler extends EventHandlerTValueTHandler = EventHandlerTValuedispatcher: EventDispatcherBaseTValueTHandler: SubscribableTValueTHandler
Type Parameters
Parameters
Methods
subscribe
Subscribe to the event.
Parameters
unsubscribe
Unsubscribe from the event.