Host · interface

ScreenPresentation

Explained in Display and the host.

interface ScreenPresentation
import type { ScreenPresentation } from '@driftengine/core';

Methods

orientation

orientation(): ScreenOrientation

lockOrientation

lockOrientation(orientation: ScreenOrientation | null): Promise<boolean>

null unlocks. false where the platform refused, which iOS always does.

ParameterTypeDescription
orientationScreenOrientation | null

safeArea

safeArea(): SafeAreaInsets

keepAwake

keepAwake(on: boolean): Promise<boolean>

false where the platform has no wake lock, or refused this one.

ParameterTypeDescription
onboolean