Register the application installation listener.
<static> addAppInstallationListener( AppInstallationListener )
Name | Type | Description |
AppInstallationListener | anonymous.AppInstallationListener | A callback for application installation changes. |
// 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 );