DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:get_display_height

Differences

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

Link to this comparison view

built_in:get_display_height [2015/03/04 16:25] (current)
octazid created
Line 1: Line 1:
 +=====GetDisplayHeight=====
 +
 +//​(Information and examples taken from the DroidScript documentation)//​
 +
 +====Description====
 +
 +The **GetDisplayHeight** method gets the height of the screen area available to your app in pixels. This excludes the notification bar area at the top of the screen (if it's visible). ​
 +
 +<​code>​ app.GetDisplayHeight();</​code>​
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  height = app.GetDisplayHeight();​
 +  app.ShowPopup( height );
 +}
 +
 +</​code>​
  
built_in/get_display_height.txt ยท Last modified: 2015/03/04 16:25 by octazid