Program Helper Base class.
Class instance accessor: Program
More...
|
| ProgramHelperBase | Say (string sentence, string locale=null, bool goAsync=false) |
| | Playbacks a synthesized voice message from speaker.
|
| |
| ProgramHelperBase | Play (string waveUrl) |
| | Playbacks a wave file.
|
| |
| Thread | RunAsyncTask (Utility.AsyncFunction functionBlock) |
| | Executes a function asynchronously.
|
| |
| void | Run (string programId, string options=null) |
| | Executes the specified Automation Program.
|
| |
| ProgramHelperBase | WaitFor (string programId) |
| | Waits for the given program to complete execution.
|
| |
| ProgramHelper | WithAddress (int programAddress) |
| | Returns a reference to the ProgramHelper of a program.
|
| |
| ProgramHelper | WithName (string programName) |
| | Returns a reference to the ProgramHelper of a program.
|
| |
|
void | UpdateCheck () |
| | Checks for system updates. If an update is available it will be notified in the UI.
|
| |
Program Helper Base class.
Class instance accessor: Program
◆ Say()
| ProgramHelperBase Say |
( |
string |
sentence, |
|
|
string |
locale = null, |
|
|
bool |
goAsync = false |
|
) |
| |
Playbacks a synthesized voice message from speaker.
- Parameters
-
| sentence | Message to output. |
| locale | Language locale string (eg. "en-US", "it-IT", "en-GB", "nl-NL",...). (optional) |
| goAsync | If true, the command will be executed asynchronously. (optional, default = false) |
Example:
Program.Say("The garage door has been opened", "en-US");
◆ Play()
Playbacks a wave file.
- Parameters
-
| waveUrl | URL of the audio wave file to play. |
◆ RunAsyncTask()
| Thread RunAsyncTask |
( |
Utility::AsyncFunction |
functionBlock | ) |
|
Executes a function asynchronously.
- Returns
- The Thread object of this asynchronous task.
- Parameters
-
| functionBlock | Function name or inline delegate. |
◆ Run()
| void Run |
( |
string |
programId, |
|
|
string |
options = null |
|
) |
| |
Executes the specified Automation Program.
- Parameters
-
| programId | Program name or ID. |
| options | Program options. (optional) |
◆ WaitFor()
Waits for the given program to complete execution.
- Returns
- ProgramHelper.
- Parameters
-
| programId | Program address or name. |
◆ WithAddress()
Returns a reference to the ProgramHelper of a program.
- Returns
- ProgramHelper.
- Parameters
-
| programAddress | Program address (id). |
◆ WithName()
Returns a reference to the ProgramHelper of a program.
- Returns
- ProgramHelper.
- Parameters
-
◆ SystemId
Get the UID of this HomeGenie instance.
The unique identifier string of this system.
The documentation for this class was generated from the following file: