DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:get_screen_density

Differences

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

Link to this comparison view

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