Difference between revisions of "Application:getDeviceHeight"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
Line 8: Line 8:
 
<source lang="lua">
 
<source lang="lua">
 
(number) = application:getDeviceHeight()
 
(number) = application:getDeviceHeight()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===

Revision as of 17:42, 12 July 2023

Available since: Gideros 2011.6
Class: Application

Description

Returns the physical height of the device in pixels. For example, for iPhone 3GS this function returns 480 and for iPhone 4 (with retina display enabled) this function returns 960.

<source lang="lua"> (number) = application:getDeviceHeight() </syntaxhighlight>

Return values

Returns (number) The physical height of the device in pixels