Difference between revisions of "Application:getDeviceOrientation"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2014.01<br/>
 
'''Available since:''' Gideros 2014.01<br/>
 
=== Description ===
 
=== Description ===
Get the device orientation (and not what is that in project properties as done with `getOrientation`).Check Accelerometer example project for usage
+
<translate>Get the device orientation (and not what is that in project properties as done with [[[getOrientation]]]).Check Accelerometer example project for usage</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(string) = Application:getDeviceOrientation()
 
(string) = Application:getDeviceOrientation()
 
</source>
 
</source>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"<br/>
+
'''Returns''' (string) <translate>Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"</translate><br/>

Revision as of 13:34, 23 August 2018

Available since: Gideros 2014.01

Description

Get the device orientation (and not what is that in project properties as done with [[[getOrientation]]]).Check Accelerometer example project for usage

(string) = Application:getDeviceOrientation()

Return values

Returns (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"