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:
_Broadcast(p_signal, …args)
- Inherited From:
Methods
_Init()
- Inherited From:
_PostInit()
- Inherited From:
Methods
_Bind(p_func)
- Inherited From:
Members
isReleasing :boolean
- Inherited From:
Methods
Release()
- Inherited From:
_CleanUp()
- Inherited From:
Members
count :number
TODO
isEmpty :boolean
TODO
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