Constructor
new SignalBroadcaster()
Extends
Broadcasting
This section list the main methods used to watch/unwatch signals on this object. For more info on signals, see signals
This section list the main methods used to watch/unwatch signals on this object. For more info on signals, see signals
Methods
Unwatch(p_signal, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
Watch(p_signal, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
WatchOnce(p_signalId, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
(p_signal, …args)
_Broadcast- Inherited From:
Methods
()
_Init- Inherited From:
()
_PostInit- Inherited From:
Methods
(p_func)
_Bind- Inherited From:
Members
:boolean
isReleasing- Inherited From:
Methods
Release()
- Inherited From:
()
_CleanUp- Inherited From:
Members
:number
countTODO
:boolean
isEmptyTODO
Methods
Add(p_fn, p_listener)
Register a subscriber. NOTE : If a 'once' subscription exists with the same signature, it will change to be permanent
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_fn |
function | ||
p_listener |
* |
null
|
AddOnce(p_fn, p_listener)
TODO
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_fn |
* | ||
p_listener |
* |
null
|
Broadcast(…args)
Broadcast arguments to subscribers
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
any |
<repeatable> |
PreventRelease()
- Inherited From:
Remove(p_fn, p_listener)
Unregister a subscriber
Parameters:
Name | Type | Default | Description |
---|---|---|---|
p_fn |
function | ||
p_listener |
* |
null
|
RemoveAll()
Remove all subscribers