Wraps the notification pattern, where something happens multiple times but the listeners should only be notified once.
More...
|
| Notifier (ParamType param) |
| Initializes a new instance of the Notifier{ParamType} class. More...
|
|
void | Reset () |
| Resets this notifier so that it will notify listeners again. More...
|
|
void | Notify () |
| Notify the listeners if they have not already been notified. More...
|
|
|
Action< ParamType > | Listener |
| Allows objects to listen for notifications. If the notifier has already been triggered, then the added listener is immediately called. More...
|
|
Wraps the notification pattern, where something happens multiple times but the listeners should only be notified once.
The Notifier API is thread-safe.
- Template Parameters
-
ParamType | The type of the parameter. |
Forge.Utilities.Notifier< ParamType >.Notifier |
( |
ParamType |
param | ) |
|
Initializes a new instance of the Notifier{ParamType} class.
- Parameters
-
param | The parameter to notify listeners with. |
void Forge.Utilities.Notifier< ParamType >.Notify |
( |
| ) |
|
Notify the listeners if they have not already been notified.
void Forge.Utilities.Notifier< ParamType >.Reset |
( |
| ) |
|
Resets this notifier so that it will notify listeners again.
Action<ParamType> Forge.Utilities.Notifier< ParamType >.Listener |
|
addremove |
Allows objects to listen for notifications. If the notifier has already been triggered, then the added listener is immediately called.
The documentation for this class was generated from the following file:
- Forge.Utilities/Notifier.cs