Difference between revisions of "Application:getScreenDensity"

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