addAppInstallationListener( AppInstallationListener ) method

Register the application installation listener.

Syntax

<static> addAppInstallationListener( AppInstallationListener )

Parameters

Name Type Description
AppInstallationListener anonymous.AppInstallationListener A callback for application installation changes.

Example

// appInstallListener is the callback function that will be passed to hwc.addAppInstallationListener.
var appInstallListener = function( event, moduleId, version, moduleName )
{
   if( event == hwc.INSTALLATION_BEGIN )
   {
      alert(moduleName + " has just started the installation process.");
   }
   else if( event == hwc.INSTALLATION_END )
   {
      alert(moduleName + " has just finished the installation process.");
   }
}
hwc.addAppInstallationListener( appInstallListener );

Source

hwc-api.js, line 947.