Liking cljdoc? Tell your friends :D

web.ar.XRSession

The XRSession of the WebXR Device API provides the means to interact an AR/VR device, providing features such as polling the viewer (viewer pose), getting information about the user's environment, presenting imagery to the user. To get an XRSession call XR.requestSession().

The XRSession of the WebXR Device API provides the means to interact
an AR/VR device, providing features such as polling the viewer
(viewer pose), getting information about the user's environment,
presenting imagery to the user. To get an XRSession call XR.requestSession().
raw docstring

cancel-animation-framecljs

(cancel-animation-frame this handle)

Method.

[Draft]

The cancelAnimationFrame() method of the web.ar.XRSession interface an animation frame previously requested via a call to XRSession.requestAnimationFrame.

XRSession.cancelAnimationFrame(handle);

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/cancelAnimationFrame

Method.

[Draft]

The cancelAnimationFrame() method of the `web.ar.XRSession` interface
an animation frame previously requested via a call to `XRSession.requestAnimationFrame`.

`XRSession.cancelAnimationFrame(handle);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/cancelAnimationFrame`
sourceraw docstring

endcljs

(end this)

Method.

[Draft]

The end() method of the web.ar.XRSession interface requests the current XR session and returns a promise that resolves when session ends.

XRSession.end();

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/end

Method.

[Draft]

The end() method of the `web.ar.XRSession` interface requests
the current XR session and returns a promise that resolves when
session ends.

`XRSession.end();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/end`
sourceraw docstring

input-sourcescljs

(input-sources this)

Property.

[Draft]

The inputSourcesreadonly property of the web.ar.XRSession interface an XRInputSourceArray object representing all tracked controllers, but not limited to handheld controllers, optically tracked hands, gaze-based input methods. Keyboards, gamepads, and mice are not input sources.

var xrInputSourceArray = XRSession.inputSources;

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputSources

Property.

[Draft]

The inputSourcesreadonly property of the `web.ar.XRSession` interface
an `XRInputSourceArray` object representing all tracked controllers,
but not limited to handheld controllers, optically tracked hands,
gaze-based input methods. Keyboards, gamepads, and mice are not
input sources.

`var xrInputSourceArray = XRSession.inputSources;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputSources`
sourceraw docstring

render-statecljs

(render-state this)

Property.

[Draft]

The renderState readonly attribute of web.ar.XRSession returns web.ar.XRRenderState object, which provides information about user's environment.

var xrRenderState = XRSession.renderState;

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/renderState

Property.

[Draft]

The renderState readonly attribute of `web.ar.XRSession` returns
`web.ar.XRRenderState` object, which provides information about
user's environment.

`var xrRenderState = XRSession.renderState;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/renderState`
sourceraw docstring

request-animation-framecljs

(request-animation-frame this on-xr-animation-frame)

Method.

[Draft]

The requestAnimationFrame() method of the web.ar.XRSession Tells the browser to paint one frame of an animation at which the browser will call the supplied callback function. The callback be run once before the next repaint.

XRSession.requestAnimationFrame(onXRAnimationFrame);

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestAnimationFrame

Method.

[Draft]

The requestAnimationFrame() method of the `web.ar.XRSession`
Tells the browser to paint one frame of an animation at which
the browser will call the supplied callback function. The callback
be run once before the next repaint.

`XRSession.requestAnimationFrame(onXRAnimationFrame);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestAnimationFrame`
sourceraw docstring

request-reference-spacecljs

(request-reference-space this type)

Method.

[Draft] [Experimental]

The requestReferenceSpace() method of the web.ar.XRSession returns a js.Promise that resolves with either an instance XRReferenceSpace or of XRBoundedReferenceSpace which contains about the current session tracking behavior.

var promise = XRSession.requestReferenceSpace(type);

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestReferenceSpace

Method.

[Draft]
[Experimental]

The requestReferenceSpace() method of the `web.ar.XRSession`
returns a `js.Promise` that resolves with either an instance
`XRReferenceSpace` or of `XRBoundedReferenceSpace` which contains
about the current session tracking behavior.

`var promise = XRSession.requestReferenceSpace(type);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestReferenceSpace`
sourceraw docstring

set-input-sources!cljs

(set-input-sources! this val)

Property.

[Draft]

The inputSourcesreadonly property of the web.ar.XRSession interface an XRInputSourceArray object representing all tracked controllers, but not limited to handheld controllers, optically tracked hands, gaze-based input methods. Keyboards, gamepads, and mice are not input sources.

var xrInputSourceArray = XRSession.inputSources;

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputSources

Property.

[Draft]

The inputSourcesreadonly property of the `web.ar.XRSession` interface
an `XRInputSourceArray` object representing all tracked controllers,
but not limited to handheld controllers, optically tracked hands,
gaze-based input methods. Keyboards, gamepads, and mice are not
input sources.

`var xrInputSourceArray = XRSession.inputSources;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputSources`
sourceraw docstring

set-render-state!cljs

(set-render-state! this val)

Property.

[Draft]

The renderState readonly attribute of web.ar.XRSession returns web.ar.XRRenderState object, which provides information about user's environment.

var xrRenderState = XRSession.renderState;

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/renderState

Property.

[Draft]

The renderState readonly attribute of `web.ar.XRSession` returns
`web.ar.XRRenderState` object, which provides information about
user's environment.

`var xrRenderState = XRSession.renderState;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/renderState`
sourceraw docstring

set-visibility-state!cljs

(set-visibility-state! this val)

Property.

[Draft]

The visibilityState readonly property of the web.ar.XRSession indicates whether or not the imagery produced by the XR session visible to the user.

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/visibilityState

Property.

[Draft]

The visibilityState readonly property of the `web.ar.XRSession`
indicates whether or not the imagery produced by the XR session
visible to the user.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/visibilityState`
sourceraw docstring

update-render-statecljs

(update-render-state this & args)

Method.

[Draft]

The updateRenderState() method of the web.ar.XRSession interface WebXR API queues an update to the active render state which will applied on the next frame.

XRSession.updateRenderState([xrRenderStateInit])

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState

Method.

[Draft]

The updateRenderState() method of the `web.ar.XRSession` interface
WebXR API queues an update to the active render state which will
applied on the next frame.

`XRSession.updateRenderState([xrRenderStateInit])`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState`
sourceraw docstring

visibility-statecljs

(visibility-state this)

Property.

[Draft]

The visibilityState readonly property of the web.ar.XRSession indicates whether or not the imagery produced by the XR session visible to the user.

See also: https://developer.mozilla.org/en-US/docs/Web/API/XRSession/visibilityState

Property.

[Draft]

The visibilityState readonly property of the `web.ar.XRSession`
indicates whether or not the imagery produced by the XR session
visible to the user.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XRSession/visibilityState`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close