Difference between revisions of "Application:getDeviceOrientation"
From GiderosMobile
Line 3: | Line 3: | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
− | <translate>Get the device orientation (and not what is that in project properties as done with | + | <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() |
Revision as of 09:37, 24 August 2018
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"