Home > rc-js-util > BroadcastEvent
Strong reference implementation of IBroadcastEvent.
Signature:
export declare class BroadcastEvent<TKey extends string, TArgs extends unknown[]> implements IBroadcastEvent<TKey, TArgs>
Implements: IBroadcastEvent
Constructor | Modifiers | Description |
---|---|---|
(constructor)(key) | Constructs a new instance of the BroadcastEvent class |
Method | Modifiers | Description |
---|---|---|
addListener(listener) | ||
addOneTimeListener(listener) | ||
addTemporaryListener(listener) | ||
emit(args) | ||
getTargets() | ||
removeListener(listener) |