Difference between revisions of "Application:getDeviceOrientation"

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

Revision as of 11:21, 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()

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