Difference between revisions of "InstalledApp Object"
(Added getInstallationState and standardized formatting.) |
|||
Line 11: | Line 11: | ||
::<code>COMPLETE</code> if the app is installed, otherwise <code>INCOMPLETE</code>. | ::<code>COMPLETE</code> if the app is installed, otherwise <code>INCOMPLETE</code>. | ||
− | == <code>getLabel</code> == | + | === <code>getLabel</code> === |
:Get the current label of the installed app. | :Get the current label of the installed app. | ||
Revision as of 15:18, 2 April 2020
getInstallationState
- Returns a value indicating whether the app is currently installed or, if you are in the initial setup, that it is not.
- Signature
String getInstallationState()
- Parameters
- None
- Returns
COMPLETE
if the app is installed, otherwiseINCOMPLETE
.
getLabel
- Get the current label of the installed app.
- Signature
String getLabel()
- Parameters
- None
- Returns
- The current label of the installed app
- Example
def appLabel = app.getLabel()
log.debug "app label is ${appLabel}"
updateLabel
- Update the label of the installed app
- Signature
- void updateLabel(String label)
- Parameters
- label - new label for installed app
- Returns
- None
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) Long getId() Long getName() List<EventSubscriptionWrapper> getSubscriptions()