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


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

example patch id

youtube id

caniuse query

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

Patches using LockOrientation