Application:getDeviceWidth

From GiderosMobile
Revision as of 18:00, 12 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source" to "</syntaxhighlight")

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.

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

Return values

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