Difference between revisions of "Application:getDeviceOrientation"

From GiderosMobile
(prefixindex)
Line 12: Line 12:
 
'''Returns''' (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"
 
'''Returns''' (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"
  
----
+
{{Application}}
{{Special:PrefixIndex/Application}}
 
<br/>
 
 
 
{{Special:PrefixIndex/Event.APPLICATION}}
 

Revision as of 23:51, 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"