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

LockOrientation Op

Ops.Devices.Mobile.LockOrientation


LockOrientation

Op author: pandur

locks orientation to landscape or portrait mode


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



Inputs

Portrait (boolean /Number)
Landscape (boolean /Number)

Outputs

Supported (Number)
Locked (Number)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Patches using LockOrientation