![]() |
Helper Class Reference 2.0
HomeGenie - Automation Programs API
|
Events Helper class.
Class instance accessor: When
More...
Public Member Functions | |
| EventsHelper | SystemStarted (Func< bool > handler) |
Calls the specified handler after HomeGenie service started. | |
| EventsHelper | SystemStopping (Func< bool > handler) |
Calls the specified handler when HomeGenie service is stopping. | |
| EventsHelper | ProgramStopping (Func< bool > handler) |
Calls the specified handler when the program is beign stopped. | |
| EventsHelper | ModuleParameterChanged (Func< ModuleHelper, ModuleParameter, bool > handler) |
Calls the specified handler function when a parameter of a module changed. If either the handler returns false or changes the event value, the propagation will stop. | |
| EventsHelper | ModuleParameterIsChanging (Func< ModuleHelper, ModuleParameter, bool > handler) |
Calls the specified handler function when a parameter of a module is changing. If either the handler returns false or changes the event value, the propagation will stop. | |
Events Helper class.
Class instance accessor: When
| EventsHelper SystemStarted | ( | Func< bool > | handler | ) |
Calls the specified handler after HomeGenie service started.
| handler | The handler function to call. |
Example:
| EventsHelper SystemStopping | ( | Func< bool > | handler | ) |
Calls the specified handler when HomeGenie service is stopping.
| handler | The handler function to call. |
Example:
| EventsHelper ProgramStopping | ( | Func< bool > | handler | ) |
Calls the specified handler when the program is beign stopped.
| handler | The handler function to call. |
Example:
| EventsHelper ModuleParameterChanged | ( | Func< ModuleHelper, ModuleParameter, bool > | handler | ) |
Calls the specified handler function when a parameter of a module changed. If either the handler returns false or changes the event value, the propagation will stop.
| handler | The handler function to call. |
Example:
| EventsHelper ModuleParameterIsChanging | ( | Func< ModuleHelper, ModuleParameter, bool > | handler | ) |
Calls the specified handler function when a parameter of a module is changing. If either the handler returns false or changes the event value, the propagation will stop.
| handler | The handler function to call. |
Example: