Host · interface
ScreenPresentation
Explained in Display and the host.
interface ScreenPresentationimport type { ScreenPresentation } from '@driftengine/core';Methods
orientation
orientation(): ScreenOrientationlockOrientation
lockOrientation(orientation: ScreenOrientation | null): Promise<boolean>null unlocks. false where the platform refused, which iOS always does.
| Parameter | Type | Description |
|---|---|---|
orientation | ScreenOrientation | null |
safeArea
safeArea(): SafeAreaInsetskeepAwake
keepAwake(on: boolean): Promise<boolean>false where the platform has no wake lock, or refused this one.
| Parameter | Type | Description |
|---|---|---|
on | boolean |