Miscellaneous Changes

Several procedural changes have been implemented in the new API.

Applications must call:
  • hwc.setLoggingCurrentLevel()
  • hwc.setLoggingAlertDialog()
  • hwc.setReportErrorFromNativeCallback()
These calls are already handled in the hwc.onHybridAppLoad() function, in the new Utils.js file. This fragment code example from the hwc.onHybridAppLoad() function shows the change; you may need to make changes if you customized the original function:
logLevel = hwc.getURLParam("loglevel");
hwc.setLoggingCurrentLevel( logLevel );         // store the log level

// set the preferred user alert dialog
hwc.setLoggingAlertDialog( hwc.showAlertDialog );

// the preferred native error callback function
hwc.setReportErrorFromNativeCallback( reportErrorFromNative );
if (logLevel >= 4) { hwc.log("entering onHybridAppLoad()", "DEBUG", false); }