lock method
The lock()
property of the ScreenOrientation interface locks the
orientation of the containing document to the specified orientation.
Typically orientation locking is only enabled on mobile devices, and when the browser context is full screen. If locking is supported, then it must work for all the parameter values listed below.
Implementation
external JSPromise<JSAny?> lock(OrientationLockType orientation);