Difference between revisions of "Application:getDeviceOrientation"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2014.01<br/>
'''<translate>Available since</translate>:''' Gideros 2014.01<br/>
+
'''Class:''' [[Application]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>Get the device orientation (and not what is that in project properties as done with [[Special:MyLanguage/getOrientation|getOrientation]]).Check Accelerometer example project for usage</translate>
+
=== Description ===
<source lang="lua">
+
Gets the device orientation (and not what is in project properties as done with ''getOrientation''). Please check Accelerometer example project for usage.
(string) = Application:getDeviceOrientation()
+
 
</source>
+
<syntaxhighlight lang="lua">
=== <translate>Return values</translate> ===
+
(string) = application:getDeviceOrientation()
'''<translate>Returns</translate>''' (string) <translate>Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"</translate><br/>
+
</syntaxhighlight>
 +
 
 +
=== Return values ===
 +
'''Returns''' (string) values can be: "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"
 +
 
 +
{{Application}}

Latest revision as of 16:46, 12 July 2023

Available since: Gideros 2014.01
Class: Application

Description

Gets the device orientation (and not what is in project properties as done with getOrientation). Please check Accelerometer example project for usage.

(string) = application:getDeviceOrientation()

Return values

Returns (string) values can be: "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"