Skip to content

1681-engine / index / OrientationTarget

Interface: OrientationTarget ​

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

The slice of ScreenOrientation used here (lock is missing from some DOM typings); tests pass their own.

Properties ​

type? ​

ts
readonly optional type?: string;

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

Methods ​

lock()? ​

ts
optional lock(orientation): Promise<void>;

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

Parameters ​

ParameterType
orientationOrientationLock

Returns ​

Promise<void>


unlock()? ​

ts
optional unlock(): void;

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

Returns ​

void

Released under the MIT License.