An XRFrame object's read-only session property returns the XRSession object that generated the frame.
Syntax
var xrSession = xrFrame.session;
Value
A XRSession object representing the WebXR session for which this XRFrame describes the object positions and orientations.
Specifications
| Specification | Status | Comment |
|---|---|---|
| WebXR Device APIThe definition of 'XRFrame.session' in that specification. | Working Draft | Initial definition. |
Browser compatibility
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Chrome
Full support 79 |
Edge
Full support 79 |
Firefox
No support No |
IE
No support No |
Opera
No support No |
Safari
No support No |
WebView Android
No support No |
Chrome Android
Full support 79 |
Firefox Android
No support No |
Opera Android
No support No |
Safari iOS
No support No |
Samsung Internet Android
Full support 11.2 |
Legend
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
XRFrame.session by Mozilla Contributors is licensed under CC-BY-SA 2.5.