Difference between revisions of "Application:getDeviceOrientation"

From GiderosMobile
Line 6: Line 6:
 
<translate>Get the device orientation (and not what is that in project properties as done with ''getOrientation'').Check Accelerometer example project for usage</translate>
 
<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>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (string) <translate>Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"</translate><br/>
 
'''<translate>Returns</translate>''' (string) <translate>Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"</translate><br/>

Revision as of 22:58, 31 May 2019


Available since: Gideros 2014.01
Class: Application

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"