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 modeportrait
– locks orientation into portrait modesensor
– clears any locks on orientation and returns the control to device sensor
- Can be:
Example
portrait
- keyword
- ⤷
[gn:act_lockScreenOrientation]|[portrait]
- ⤷