Difference between revisions of "Application:getOrientation"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
Returns the orientation of the application.
 
Returns the orientation of the application.
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = application:getOrientation()
 
(string) = application:getOrientation()
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 17:22, 12 July 2023

Available since: Gideros 2011.6
Class: Application

Description

Returns the orientation of the application.

(string) = application:getOrientation()

Return values

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