Application:getDeviceOrientation: Difference between revisions

From GiderosMobile
No edit summary
prefixindex
Line 1: Line 1:
__NOTOC__
'''Available since:''' Gideros 2014.01<br/>
<languages />
'''Class:''' [[Application|Application]]<br/>
'''<translate>Available since</translate>:''' Gideros 2014.01<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/>
=== Description ===
=== <translate>Description</translate> ===
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>
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (string) <translate>Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"</translate><br/>
=== Return values ===
'''Returns''' (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"
 
----
{{Special:PrefixIndex/Application}}
<br/>
 
{{Special:PrefixIndex/Event.APPLICATION}}

Revision as of 11:54, 2 December 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"