Skip to main content

Function: isXRSupported()

isXRSupported(mode): Promise<boolean>

Defined in: src/core/WebXR.ts:82

Whether an immersive session of the given mode can be started right now.

Parameters​

mode​

XRSessionMode = 'immersive-vr'

Session mode to probe. Defaults to 'immersive-vr'.

Returns​

Promise<boolean>

true only when WebXR exists and reports the mode as supported; false in every unavailable or error case (never throws).