XR · function

probeXrSupport

Ask, and try the step that lies.

Explained in XR.

function probeXrSupport(context?: object | null, override?: XrSystem | null): Promise<XrSupport>
import { probeXrSupport } from '@driftengine/xr';

Parameters

ParameterTypeDescription
context?object | null
override?XrSystem | null

In depth

context is optional because a consumer may want the modes before they have built a renderer. Without one, compatible is false and reason says the question was not asked, which is a different thing from asked and refused.