Table of Contents

IsScreenOn

(Information and examples taken from the DroidScript documentation)

Description

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 );
}