Application:getDeviceOrientation: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2014.01<br/>
'''<translate>Available since</translate>:''' Gideros 2014.01<br/>
=== Description ===
=== <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>
<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>
<source lang="lua">
<source lang="lua">
(string) = Application:getDeviceOrientation()
(string) = Application:getDeviceOrientation()
</source>
</source>
=== Return values ===
=== <translate>Return values</translate> ===
'''Returns''' (string) <translate>Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"</translate><br/>
'''<translate>Returns</translate>''' (string) <translate>Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"</translate><br/>

Revision as of 06:29, 24 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"