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
- TValue- The type of the argument passed to subscribers. 
- THandler extends EventHandlerTValue = EventHandlerTValue- The 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.