Difference between revisions of "InstalledApp Object"

From Hubitat Documentation
Jump to: navigation, search
(Created page with "== <code>getLabel</code> ==")
 
(getLabel)
Line 1: Line 1:
 
== <code>getLabel</code> ==
 
== <code>getLabel</code> ==
 +
Get the current label of the installed app.
 +
 +
'''Signature'''
 +
String getLabel()
 +
 +
'''Returns'''
 +
 +
The current label of the installed app
 +
 +
'''Example'''
 +
def appLabel = app.getLabel()
 +
log.debug "app label is ${appLabel}"
 +
 +
 +
== <code>updateLabel</code> ==
 +
 +
== <code>Additional Methods to Document</code> ==
 +
void updateSetting(String name, Map options)
 +
void updateSetting(String name, Long value)
 +
void updateSetting(String name, Boolean value)
 +
void updateSetting(String name, String value)
 +
void updateSetting(String name, Double value)
 +
void updateSetting(String name, Date value)
 +
void updateSetting(String name, List value)
 +
void removeSetting(String name)
 +
void clearSetting(String name)
 +
String getInstallationState()
 +
Long getId()
 +
Long getName()
 +
List<EventSubscriptionWrapper> getSubscriptions()

Revision as of 23:35, 16 October 2018

getLabel

Get the current label of the installed app.

Signature

String getLabel()

Returns

The current label of the installed app

Example

def appLabel = app.getLabel()
log.debug "app label is ${appLabel}"


updateLabel

Additional Methods to Document

void updateSetting(String name, Map options)
void updateSetting(String name, Long value)
void updateSetting(String name, Boolean value)
void updateSetting(String name, String value)
void updateSetting(String name, Double value)
void updateSetting(String name, Date value)
void updateSetting(String name, List value)
void removeSetting(String name)
void clearSetting(String name)
String getInstallationState()
Long getId()
Long getName()
List<EventSubscriptionWrapper> getSubscriptions()