Class PlatformEventEmitter<T>

Event manager - accepts subscriptions to an event and runs the subscription callbacks when the event is emitted Use eventEmitter.event(callback) to subscribe to the event. Use eventEmitter.emit(event) to run the subscriptions. Generally, this EventEmitter should be private, and its event should be public. That way, the emitter is not publicized, but anyone can subscribe to the event.

Type Parameters

  • T

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

subscribe: PlatformEvent<T> = ...

Subscribes a function to run when this event is emitted.

Function to run with the event when it is emitted

Unsubscriber function to run to stop calling the passed-in function when the event is emitted

event

Accessors

Methods