Skip to content

1681-engine / index / lockOrientation

Function: lockOrientation() ​

ts
function lockOrientation(orientation, target?): Promise<boolean>;

Defined in: src/platform/orientation.ts:22

Resolves true once the screen is locked to orientation, false where the platform refuses or cannot.

Parameters ​

ParameterType
orientationOrientationLock
targetOrientationTarget | null

Returns ​

Promise<boolean>

Released under the MIT License.