Difference between revisions of "Application:getScreenDensity"

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