Checks if the device screen is currently on.
app.IsScreenOn() → Boolean
Example - Check Screen On
function OnStart()
{
app.ShowPopup( "You may now disable your screen." )
setTimeout( checkScreenOn, 5000 );
}
function checkScreenOn()
{
screenOn = app.IsScreenOn();
app.ShowPopup( screenOn, "Screen On:" );
}