From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
Line 3: Line 3:
 
[[Category:Action_Library]]
 
[[Category:Action_Library]]
  
;Description: Action used to locks the screen orientation to desired orientation. Setting lock on orientation will keep the lock until the application is turned off. To remove the lock or switch it to another orientation, action must be used again with a different keyword.
+
;Description: Action used to locks the screen orientation to desired orientation.
 +
 
 +
:Setting lock on orientation will keep the lock until the application is turned off.
 +
 
 +
:To remove the lock or switch it to another orientation, action must be used again with a different <code>keyword</code>.
  
 
;Action returns: void
 
;Action returns: void
Line 10: Line 14:
 
===Lock screen orientation===
 
===Lock screen orientation===
  
;<code>[gn:act_lockScreenOrientation]|[keyword]</code>
+
:;<code>[gn:act_lockScreenOrientation]|[keyword]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| keyword
+
| <code>keyword</code>
 
|  
 
|  
 
:Can be:
 
:Can be:
Line 27: Line 31:
  
 
====Example====
 
====Example====
<code>portrait</code> - keyword<br><br>
+
:<code>portrait</code> - keyword<br>
<code>[gn:act_lockScreenOrientation]|[portrait]</code>
+
:; ⤷ <code>[gn:act_lockScreenOrientation]|[portrait]</code>
 
<hr>
 
<hr>

Latest revision as of 13:34, 12 July 2017

gn:act_lockScreenOrientation

Description
Action used to locks the screen orientation to desired orientation.
Setting lock on orientation will keep the lock until the application is turned off.
To remove the lock or switch it to another orientation, action must be used again with a different keyword.
Action returns
void

Action signatures

Lock screen orientation

[gn:act_lockScreenOrientation]|[keyword]
Parameter Description
keyword
Can be:
  • landscape – locks orientation into landscape mode
  • portrait – locks orientation into portrait mode
  • sensor – clears any locks on orientation and returns the control to device sensor

Example

portrait - keyword
[gn:act_lockScreenOrientation]|[portrait]