Application:getScreenDensity: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
 
(7 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>Description</translate> ===
 
<translate><br />
=== Description ===
Returns the screen density in pixels per inch. If screen density information is not available, returns [[Special:MyLanguage/nil|nil]].<br />
Returns the screen density in pixels per inch. If screen density information is not available, returns ''nil''.
<br /></translate>
<syntaxhighlight lang="lua">
<source lang="lua">
(number) = application:getScreenDensity()
(number) = Application:getScreenDensity()
</syntaxhighlight>
</source>
 
=== <translate>Return values</translate> ===
=== Return values ===
'''<translate>Returns</translate>''' (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 15: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