DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:is_screen_on

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:is_screen_on [2015/03/04 18:03] (current)
octazid created
Line 1: Line 1:
 +=====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. 
 +
 +<​code>​ app.IsScreenOn();</​code>​
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  screenOn = app.IsScreenOn();​
 +  app.ShowPopup( screenOn );
 +}
 +
 +</​code>​
built_in/is_screen_on.txt ยท Last modified: 2015/03/04 18:03 by octazid