×

Set Orientation Lock

iOS 14 +

Notes

Sets the state of the devices Orientation Lock.

Syntax

setOrientationLock(state: <#Boolean#>)

Example

setOrientationLock(state: true)