Difference between revisions of "Application:getScreenDensity"

From GiderosMobile
m
m (Text replacement - "</source" to "</syntaxhighlight")
Line 6: Line 6:
 
<source lang="lua">
 
<source lang="lua">
 
(number) = application:getScreenDensity()
 
(number) = application:getScreenDensity()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===

Revision as of 16:53, 12 July 2023

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