Skip to content

Interface: RuntimeScope ​

Defined in: types/desktop-engine.d.ts:4697

Runtime scope DesktopEngineRuntime: every property read returns a new constructor object

Properties ​

AnimationFrameManager ​

ts
readonly AnimationFrameManager: 
  | SingletonConstructor<AnimationFrameManager>
  | undefined;

Defined in: types/desktop-engine.d.ts:4699

Animation frame manager (a singleton, internal)


Audio ​

ts
readonly Audio: 
  | SingletonConstructor<unknown>
  | undefined;

Defined in: types/desktop-engine.d.ts:4745

Native side of Web Audio and Audio (a singleton, internal: use the globals)


Canvas ​

ts
readonly Canvas: CanvasConstructor;

Defined in: types/desktop-engine.d.ts:4709

Canvas component constructor


CanvasImage ​

ts
readonly CanvasImage: CanvasImageConstructor;

Defined in: types/desktop-engine.d.ts:4711

Canvas image constructor


Component ​

ts
readonly Component: ComponentConstructor;

Defined in: types/desktop-engine.d.ts:4703

Basic component constructor


FileSystem ​

ts
readonly FileSystem: PlainConstructor<unknown>;

Defined in: types/desktop-engine.d.ts:4737

Native side of DesktopEngine.fs and require (internal: use DesktopEngine.fs)


Fonts ​

ts
readonly Fonts: 
  | SingletonConstructor<unknown>
  | undefined;

Defined in: types/desktop-engine.d.ts:4747

Native side of FontFace and DesktopEngine.fonts (a singleton, internal: use them)


Image ​

ts
readonly Image: ImageConstructor;

Defined in: types/desktop-engine.d.ts:4707

Image component constructor


Input ​

ts
readonly Input: PlainConstructor<Input>;

Defined in: types/desktop-engine.d.ts:4717

Input constructor (use DesktopEngine.input)


LocalStorage ​

ts
readonly LocalStorage: 
  | SingletonConstructor<unknown>
  | undefined;

Defined in: types/desktop-engine.d.ts:4739

Native side of localStorage (a singleton, internal: use the global)


Network ​

ts
readonly Network: 
  | SingletonConstructor<unknown>
  | undefined;

Defined in: types/desktop-engine.d.ts:4743

Native side of fetch, WebSocket, blob URLs and TextDecoder (a singleton, internal: use the globals)


ScreenManager ​

ts
readonly ScreenManager: PlainConstructor<ScreenManager>;

Defined in: types/desktop-engine.d.ts:4713

Screen manager constructor


SyncStorage ​

ts
readonly SyncStorage: 
  | SingletonConstructor<unknown>
  | undefined;

Defined in: types/desktop-engine.d.ts:4741

Native side of DesktopEngine.syncStorage (a singleton, internal: use DesktopEngine.syncStorage)


System ​

ts
readonly System: PlainConstructor<System>;

Defined in: types/desktop-engine.d.ts:4715

System services constructor


SystemAudio ​

ts
readonly SystemAudio: SingletonConstructor<SystemAudio>;

Defined in: types/desktop-engine.d.ts:4723

SystemAudio constructor, a singleton: use DesktopEngine.systemAudio. Content may construct it before reading DesktopEngine.systemAudio, which is then that object; constructing another throws TypeError "Illegal constructor". Throws without the "system-audio" permission, and DesktopEngine.systemAudio is null then


SystemStatus ​

ts
readonly SystemStatus: SingletonConstructor<SystemStatus>;

Defined in: types/desktop-engine.d.ts:4729

SystemStatus constructor, a singleton: use DesktopEngine.systemStatus. Content may construct it before reading DesktopEngine.systemStatus, which is then that object; constructing another throws TypeError "Illegal constructor". Throws without the "system-info" permission, and DesktopEngine.systemStatus is null then


Video ​

ts
readonly Video: VideoConstructor;

Defined in: types/desktop-engine.d.ts:4705

Video component constructor


Window ​

ts
readonly Window: WindowConstructor;

Defined in: types/desktop-engine.d.ts:4701

Window constructor


Windows ​

ts
readonly Windows: SingletonConstructor<Windows>;

Defined in: types/desktop-engine.d.ts:4735

Windows constructor, a singleton: use DesktopEngine.windows. Content may construct it before reading DesktopEngine.windows, which is then that object; constructing another throws TypeError "Illegal constructor". Throws without the "window-positions" permission, and DesktopEngine.windows is null then

The SDK is released under the Apache License 2.0