XRSession

Properties

Link copied to clipboard

Deletes the persistent anchor with the given UUID. Also deletes the anchor.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

XRSession 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.

Link copied to clipboard

Returns a list of this session's XRInputSources, each representing an input device used to control the camera and/or scene.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A list of the known persistent anchors

Link copied to clipboard

object which contains options affecting how the imagery is rendered. This includes things such as the near and far clipping planes

Link copied to clipboard

Legacy

Link copied to clipboard
Link copied to clipboard

Restores a persistent anchor with the given UUID.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Removes 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().

Link copied to clipboard
open fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
inline suspend fun XRSession.end()

Ends the WebXR session. Returns a promise which resolves when the session has been shut down.

Link copied to clipboard

Ends the WebXR session. Returns a promise which resolves when the session has been shut down.

Link copied to clipboard

Schedules 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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
inline suspend fun XRSession.updateRenderState()
inline suspend fun XRSession.updateRenderState(renderStateInit: XRRenderStateInit)
Link copied to clipboard
fun updateRenderStateAsync(renderStateInit: XRRenderStateInit = definedExternally): Promise<Void>
Link copied to clipboard
inline suspend fun XRSession.updateTargetFrameRate(rate: Float)
Link copied to clipboard
Link copied to clipboard