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) { ... } }
Name | Description | Return type |
---|---|---|
onListChanged |
Called by the native code when an element appears or disappears from the application list. |
undefined |
onApplicationChanged |
Called when the application's details are modified. |
undefined |