Toggle Orientation Lock

Notes

Toggles the state of the devices Orientation Lock.

Syntax

toggleOrientationLock(state: <#Boolean#>)

Example

toggleOrientationLock(state: true)