Difference between revisions of "Application:getScreenDensity"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09.2<br/> === Description === <br /> Returns the screen density in pixels per inch. If screen density information is not availabl...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
(number), = Application:getScreenDensity()
+
(number) = Application:getScreenDensity()
 
</source>
 
</source>
 
'''Returns''' (number) If available returns the screen density in pixels per inch, otherwise returns `nil`.<br/>
 
'''Returns''' (number) If available returns the screen density in pixels per inch, otherwise returns `nil`.<br/>

Revision as of 10:17, 23 August 2018

Available since: Gideros 2012.09.2

Description


Returns the screen density in pixels per inch. If screen density information is not available, returns `nil`.

(number) = Application:getScreenDensity()

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