Difference between revisions of "Application:getDeviceHeight"

From GiderosMobile
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
 
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[Application|Application]]<br/>
 +
 
=== Description ===
 
=== Description ===
<br />
+
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.
Returns the physical height of the device in pixels. For example,<br />
+
<br/>
for iPhone 3GS this function returns 480 and for iPhone 4 (with retina display enabled) this function returns 960.<br />
+
 
<br />
 
 
<source lang="lua">
 
<source lang="lua">
(number) = Application:getDeviceHeight()
+
(number) = application:getDeviceHeight()
 
</source>
 
</source>
'''Returns''' (number) The physical height of the device in pixels<br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (number) The physical height of the device in pixels
 +
 
 +
{{Application}}

Revision as of 00:50, 3 December 2019

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.

(number) = application:getDeviceHeight()

Return values

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