beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Devices.Mobile.LockOrientation

LockOrientation
op id:486d5713-5292-47af-bbd3-df81fb7cd3ca
locks orientation to landscape or portrait mode

summary (oneliner)

Note: This method only works for installed Web apps or for Web pages in full-screen mode.

see: https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation

doc

issues

youtube id

collections

related ops

Inputs

Portrait (Number)

Landscape (Number)

Outputs

Supported (Number)

Locked (Number)

Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using LockOrientation

Public Patches using LockOrientation