Difference between revisions of "Application:getScreenDensity"

From GiderosMobile
m
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/>
+
=== Description ===
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]
 
<br/>
 
=== <translate>Description</translate> ===
 
<translate>
 
 
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''.
</translate>
+
 
 
<source lang="lua">
 
<source lang="lua">
 
(number) = application:getScreenDensity()
 
(number) = application:getScreenDensity()
 
</source>
 
</source>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>If available returns the screen density in pixels per inch, otherwise returns ''nil''.</translate>
+
=== Return values ===
<br/>
+
'''Returns''' (number) If available returns the screen density in pixels per inch, otherwise returns ''nil''.<br/>
<br/>
+
 
 +
{{Application}}

Revision as of 00:20, 3 December 2019

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.