Table of Contents

Application:getDeviceWidth

Available since version: 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.

Syntax:

(number) = Application:getDeviceWidth()

Return value:

  • number: The physical width of the device in pixels