If somebody wants to test if he gets the goingToScreenSaver event with WebLaunch, include
Code:
var appName = 'com.PaulFreund.WebLaunch';
pillowHelper.RequestStatusBarEvent(
appName,
'com.lab126.powerd',
'goingToScreenSaver'
);
pillowHelper.RegisterStatusBarEventCallback(
appName,
function(value)
{
document.write(JSON.stringify(value));
}
);
after
Code:
var sessionSettings = settings;
and
after
Code:
//-------------------------------------------------------------
// Open application
function openApp(state)
{
and
Code:
pillowHelper.UnRegisterStatusBarEventCallback(appName);
after
Code:
//-------------------------------------------------------------
// restore status bar on close
function closeApp()
{
Then all events that are collected by the statusbar will show up and hopefully to goingToScreenSaver event too.
To test please press the power button while preventScreenSaver set to 0 or to 1