Back

IsScreenOn

The IsScreenOn method returns true if the device screen is turned on and false if not.

 app.IsScreenOn();

Example

function OnStart()
{
  screenOn = app.IsScreenOn();
  app.ShowPopup( screenOn );
}
  Copy   Copy All    Run