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 ​
| Parameter | Type |
|---|---|
orientation | OrientationLock |
target | OrientationTarget | null |
Returns ​
Promise<boolean>