Difference between revisions of "Application:getOrientation"

From GiderosMobile
(----)
m
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Returns the orientation of the application.
 
Returns the orientation of the application.
 
+
<syntaxhighlight lang="lua">
<source lang="lua">
 
 
(string) = application:getOrientation()
 
(string) = application:getOrientation()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"
+
'''Returns''' (string) values can be "'''portrait'''", "'''portraitUpsideDown'''", "'''landscapeLeft'''", "'''landscapeRight'''"
 
 
----
 
{{Special:PrefixIndex/Application}}
 
<br/>
 
  
{{Special:PrefixIndex/Event.APPLICATION}}
+
{{Application}}

Latest revision as of 19:28, 15 December 2023

Available since: Gideros 2011.6
Class: Application

Description

Returns the orientation of the application.

(string) = application:getOrientation()

Return values

Returns (string) values can be "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"