Called when the application's details are modified.
The application's state and operation status change during installation and update. The application's description and ID are set once it is available (as a result of entering the "ready" state or changing the operation status). The application's URL changes once it enters the "updating" state, after a new URL address is provided. The progress is passed when the application is either in the "installing" or "updating" state. The error is set only when the application is in the "failed" state.
The onApplicationChanged
will not be called after the application is
uninstalled.
Name | Description | Type | Use |
---|---|---|---|
application | An Application object. If the
progress parameter is passed, the object contains the following
properties only: id,
url and state. |
object |
required |
progress | A numerical value ranging from 0 to 1, which informs of the progress of an operation. |
float |
optional |
error | An object containing the failure's code and description, thrown if the application cannot be installed or updated. Possible failure types are listed in the Constants table, found in the ApplicationManager article. |
string |
required |