API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classCapabilities

@codexo/exojs / core / stable

Frozen snapshot of host-environment feature support: which renderer backends are available, which input modalities are present, audio / fullscreen / vibration / OffscreenCanvas / Worker support, max touch points, and the resolved devicePixelRatio. Construction is private — the only public entry is Capabilities.ready, a lazy-cached `Promise<Capabilities>` that fires the (mostly) async probes on first access. The resolved instance is frozen and never mutates. Application.capabilities returns the same instance once `app.start()` has resolved.

19
props
0
methods
0
events
Import
import { Capabilities } from '@codexo/exojs'

Frozen snapshot of host-environment feature support: which renderer backends are available, which input modalities are present, audio / fullscreen / vibration / OffscreenCanvas / Worker support, max touch points, and the resolved devicePixelRatio.

Construction is private — the only public entry is Capabilities.ready, a lazy-cached `Promise\<Capabilities>` that fires the (mostly) async probes on first access. The resolved instance is frozen and never mutates. Application.capabilities returns the same instance once `app.start()` has resolved.

Properties 19
audio: boolean
deviceMemory: number
devicePixelRatio: number
fullscreen: boolean
gamepad: boolean
imageBitmap: boolean
keyboard: boolean
maxTouchPoints: number
offscreenCanvas: boolean
pointer: boolean
touch: boolean
vibration: boolean
webgl2: boolean
webgpu: boolean
webgpuAdapter: GPUAdapter | null
webgpuArchitecture: string | null
webgpuVendor: string | null
webWorkers: boolean
ready: Promise<Capabilities>
Source