Difference between revisions of "Application:getDeviceWidth"

From GiderosMobile
(prefixindex)
Line 13: Line 13:
 
'''Returns''' (number) The physical width of the device in pixels
 
'''Returns''' (number) The physical width of the device in pixels
  
----
+
{{Application}}
{{Special:PrefixIndex/Application}}
 
<br/>
 
 
 
{{Special:PrefixIndex/Event.APPLICATION}}
 

Revision as of 23:52, 2 December 2019

Available since: Gideros 2011.6
Class: Application

Description

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

(number) = application:getDeviceWidth()

Return values

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