Difference between revisions of "Application:getOrientation"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
Line 7: Line 7:
 
<source lang="lua">
 
<source lang="lua">
 
(string) = application:getOrientation()
 
(string) = application:getOrientation()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===

Revision as of 16:48, 12 July 2023

Available since: Gideros 2011.6
Class: Application

Description

Returns the orientation of the application.

<source lang="lua"> (string) = application:getOrientation() </syntaxhighlight>

Return values

Returns (string) Values "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight"