Registers a listener for the ApplicationManager
's callback.
Every new listener will be called right after its registration with the current list of applications.
The following table presents the callback supported by the listener.
Name | Description | Type | Use |
---|---|---|---|
callback | Passed to indicate that either the list of applications has been modified or the application's details have changed. |
object |
required |
The ApplicationManager
listener's callback can be structured as
follows:
{ onListChanged: function(map) { ... }, onApplicationChanged: function(application, status, error) { ... }, onApplicationNavigationFailed: function(application, url, error) { ... } }
Name | Description | Return type |
---|---|---|
onListChanged |
Called by the native code when an element appears or disappears from the application list. |
undefined |
onApplicationNavigationFailed |
Called either when an application without a cache manifest is being started and the URL address is not available, or when any link or reference within such application is unavailable, e.g. bacause the device is in offline mode. |
undefined |
onApplicationChanged |
Called when the application's details are modified. |
undefined |