Application:getDeviceWidth: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
<br /> | <translate><br /> | ||
Returns the physical width of the device in pixels. For example,<br /> | Returns the physical width of the device in pixels. For example,<br /> | ||
for iPhone 3GS this function returns 320 and for iPhone 4 (with retina display enabled) this function returns 640.<br /> | for iPhone 3GS this function returns 320 and for iPhone 4 (with retina display enabled) this function returns 640.<br /> | ||
<br /> | <br /></translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
(number) = Application:getDeviceWidth() | (number) = Application:getDeviceWidth() | ||
</source> | </source> | ||
=== Return values === | === Return values === | ||
'''Returns''' (number) The physical width of the device in pixels<br/> | '''Returns''' (number) <translate>The physical width of the device in pixels</translate><br/> | ||
Revision as of 12:32, 23 August 2018
Available since: Gideros 2011.6
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