Example
const Homey = require('homey');
class MyApp extends Homey.App {
onInit() {
this.log('My App is running!');
}
}
module.exports = MyApp;
Extends
Methods
error(…message)
Log a message to the console (stderr)
- Overrides:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
*
|
<repeatable> |
log(…message)
Log a message to the console (stdout)
- Overrides:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
*
|
<repeatable> |
onInit()
This method is called upon initialization of your app