DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:get_screen_width

Differences

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

Link to this comparison view

built_in:get_screen_width [2015/03/04 17:57] (current)
octazid created
Line 1: Line 1:
 +=====GetScreenWidth=====
  
 +//​(Information and examples taken from the DroidScript documentation)//​
 +
 +====Description====
 +
 +The **GetScreenWidth** method gets the width of the phone/​tablet screen in pixels.  ​
 +
 +<​code>​ app.GetScreenWidth();</​code>​
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  width = app.GetScreenWidth();​
 +  app.ShowPopup( width );
 +}
 +
 +</​code>​
built_in/get_screen_width.txt ยท Last modified: 2015/03/04 17:57 by octazid