accountManagerListener


Purpose

Represents the AccountManager's listener for the onOpen() and onClose() callbacks.

Tip

It may be used in order to verify if the application should not be shut down after the account has been closed.

Callback structure

The accountManagerListener object can be structured as follows:

launchbox.AccountManager.accountManagerListener = {
  onOpen: function() { ... },
  onClose: function() { ... }
};

Methods

The following table lists all callback methods supported by the accountManagerListener object.

Name Description Return type
onOpen Called after the account is opened. undefined
onClose The account will be closed after this method finishes. Communication, user's private SQL storages and the filesystem will no longer be available. Open SQL transactions will be rolled-back, and file operations will be terminated. undefined

Related topics

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