AbstractOptionaldeleteOptional ReadonlydepthOptional ReadonlydepthOptional ReadonlydepthOptional ReadonlydepthOptional ReadonlydomOptional ReadonlyenabledReadonlyenvironmentOptional ReadonlyframeReadonlyinputReturns a list of this session's XRInputSources, each representing an input device used to control the camera and/or scene.
Optional ReadonlyinteractionReadonlyisOptional ReadonlypauseOptional ReadonlypersistentA list of the known persistent anchors
Readonlyrenderobject which contains options affecting how the imagery is rendered. This includes things such as the near and far clipping planes
OptionalrequestOptionalrequestOptionalrequestOptionalrestoreRestores a persistent anchor with the given UUID.
If the sessions map of persistent anchors does not contain the given UUID or if the session has ended, the promise will be rejected with a InvalidStateError.
Optional ReadonlyresumeOptional ReadonlysupportedReadonlyvisibilityThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsRemoves a callback from the animation frame painting callback from XRSession's set of animation frame rendering callbacks, given the identifying handle returned by a previous call to requestAnimationFrame().
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Ends the WebXR session. Returns a promise which resolves when the session has been shut down.
OptionalinitiateXRSession is extended to contain the initiateRoomCapture method which, if supported, will ask the XR Compositor to capture the current room layout. It is up to the XRCompositor if this will replace or augment the set of tracked planes. The user agent MAY also ignore this call, for instance if it doesn’t support a manual room capture more or if it determines that the room is already set up. The initiateRoomCapture method MUST only be able to be called once per XRSession.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsSchedules the specified method to be called the next time the user agent is working on rendering an animation frame for the WebXR device. Returns an integer value which can be used to identify the request for the purposes of canceling the callback using cancelAnimationFrame(). This method is comparable to the Window.requestAnimationFrame() method.
Requests that a new XRReferenceSpace of the specified type be created. Returns a promise which resolves with the XRReferenceSpace or XRBoundedReferenceSpace which was requested, or throws a NotSupportedError if the requested space type isn't supported by the device.
OptionalrenderStateInit: XRRenderStateInit
Deletes the persistent anchor with the given UUID. Also deletes the anchor.
If the sessions map of persistent anchors does not contain the given UUID the promise will be rejected with a InvalidStateError.