addApplicationManagerListener


Purpose

Registers a listener for the ApplicationManager's callback.

Every new listener will be called right after its registration with the current list of applications.

Signature

addApplicationManagerListener( callback )

Returns

This method does not return anything.

Parameter

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

Callback structure

The ApplicationManager listener's callback can be structured as follows:

{
    onListChanged: function(map) { ... },
    onApplicationChanged: function(application, status, error) { ... },
    onApplicationNavigationFailed: function(application, url, error) { ... }
}

Methods

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

Related topics

Public API reference
ApplicationManager
Legal notice | Copyright © 2015 and Confidential to Pegasystems Inc. All rights reserved. | Feedback
Advanced...