beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
LockOrientation
Ops.Devices.Mobile.LockOrientation
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)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Credits


Examples using LockOrientation

Public Patches using LockOrientation