js-util

Home > rc-js-util > BroadcastEvent

BroadcastEvent class

Strong reference implementation of IBroadcastEvent.

Signature:

export declare class BroadcastEvent<TKey extends string, TArgs extends unknown[]> implements IBroadcastEvent<TKey, TArgs> 

Implements: IBroadcastEvent

Constructors

Constructor Modifiers Description
(constructor)(key)   Constructs a new instance of the BroadcastEvent class

Methods

Method Modifiers Description
addListener(listener)    
addOneTimeListener(listener)    
addTemporaryListener(listener)    
emit(args)    
getTargets()    
removeListener(listener)