3 // This function runs when the SmartApp is installed
5 // This is a standard debug statement in Groovy
6 //log.debug "Installed with settings: ${settings}"
11 println "installed() is called!"
12 boolean thisBoolean = false;
13 initialize(thisBoolean)
16 // This function is where you initialize callbacks for event listeners
17 def initialize(thisBoolean) {
18 // The subscribe function takes a input, a state, and a callback method
19 //subscribe(contact, "contact.open", openHandler)
20 //subscribe(contact, "contact.closed", closedHandler)
22 println "Boolean is now " + thisBoolean
23 println "initialize() is called!"
26 static void main(String[] args) {
28 Empty empty = new Empty();
29 //int result = emp.installed();
36 println "End of call!"