Difference between revisions of "Application:setOrientation"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
Sets the orientation of the application. Accepted values are:<br /> | Sets the orientation of the application. Accepted values are:<br /> | ||
Line 15: | Line 15: | ||
Application:setOrientation(orientation) | Application:setOrientation(orientation) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''orientation''': (string) <translate></translate> <br/> | '''orientation''': (string) <translate></translate> <br/> | ||
− | === Examples === | + | === <translate>Examples</translate> === |
'''Example'''<br/> | '''Example'''<br/> | ||
<source lang="lua">application:setOrientation(Application.PORTRAIT) -- the buttons are on the bottom | <source lang="lua">application:setOrientation(Application.PORTRAIT) -- the buttons are on the bottom |
Revision as of 07:29, 24 August 2018
Available since: Gideros 2011.6
Description
Sets the orientation of the application. Accepted values are:
<ul>
<li>Application.PORTRAIT = "portrait"</li>
<li>Application.PORTRAIT_UPSIDE_DOWN = "portraitUpsideDown"</li>
<li>Application.LANDSCAPE_LEFT = "landscapeLeft"</li>
<li>Application.LANDSCAPE_RIGHT = "landscapeRight"</li>
</ul>
Application:setOrientation(orientation)
Parameters
orientation: (string)
Examples
Example
application:setOrientation(Application.PORTRAIT) -- the buttons are on the bottom
application:setOrientation(Application.PORTRAIT_UPSIDE_DOWN) -- the buttons are at the top
application:setOrientation(Application.LANDSCAPE_LEFT) -- the buttons are on the right side
application:setOrientation(Application.LANDSCAPE_RIGHT) -- the buttons are on the left side