Application:getScreenDensity

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

Available since: Gideros 2012.09.2
Class: Application

Description

Returns the screen density in pixels per inch. If screen density information is not available, returns nil. <source lang="lua"> (number) = application:getScreenDensity() </syntaxhighlight>

Return values

Returns (number) if available returns the screen density in pixels per inch, otherwise returns nil