Represents an independent web application manager object. Allows to install, remove and update web applications that run in the client.
The Constants section below lists errors that may be returned in a callback if an operation fails.
The object can be accessed using the launchbox.ApplicationManager
reference.
Name | Description | Type |
---|---|---|
self | Represents the current application. The data contained within this object does not change in the application's lifecycle. | object |
Name | Description |
---|---|
APPLICATION_NOT_FOUND | Error returned when the application cannot be found on the application manager's list. |
APPLICATION_NOT_INSTALLED | Thrown when trying to start/stop a Web Application that is in "notinstalled" or "failed" state. |
INVALID_APPLICATION_URL | Thrown when the application's URL is incorrect. |
Name | Description | Return type |
---|---|---|
addApplicationManagerListener |
Registers a listener for the |
object |
installApplications |
Installs a set applications enumerated on the list. |
undefined |
isCacheManifestUpdateAvailable |
Finds out whether the cache manifest has been updated on the server. |
undefined |
reinstallApplication |
Re-installs an application, that has been identified by means of an application ID or application's URL address. |
undefined |
removeApplicationManagerListener |
Removes a listener for the |
object |
removeApplications |
Removes a set applications identified on a list by means of application IDs or application URL addresses. |
undefined |
startApplication |
Starts an application that has been identified by means of an application ID or application's URL address. |
undefined |
stopApplication |
Instantly kills an app that has been identified by means of an application ID or application's URL address. |
undefined |
updateApplication |
Updates an application, that has been identified by means of an application ID or application's URL address. |
undefined |