Difference between revisions of "Application:getScreenDensity"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
 
 
'''Available since:''' Gideros 2012.09.2<br/>
 
'''Available since:''' Gideros 2012.09.2<br/>
 +
'''Class:''' [[Application]]<br/>
 +
 
=== Description ===
 
=== Description ===
<translate><br />
+
Returns the screen density in pixels per inch. If screen density information is not available, returns ''nil''.
Returns the screen density in pixels per inch. If screen density information is not available, returns [[Special:MyLanguage/nil|nil]].<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
(number) = application:getScreenDensity()
<source lang="lua">
+
</syntaxhighlight>
(number) = Application:getScreenDensity()
+
 
</source>
 
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) <translate>If available returns the screen density in pixels per inch, otherwise returns [[Special:MyLanguage/nil|nil]].</translate><br/>
+
'''Returns''' (number) if available returns the screen density in pixels per inch, otherwise returns ''nil''<br/>
 +
 
 +
{{Application}}

Latest revision as of 16:58, 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.

(number) = application:getScreenDensity()

Return values

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