Secure contextThis feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The WebXR Device API interface XRReferenceSpaceEvent
represents an event sent to an XRReferenceSpace
. Currently, the only event that uses this type is the reset
event.
Constructor
XRReferenceSpaceEvent()
- Returns a new
XRReferenceSpaceEvent
with the specified type and configured using the values in the givenXRReferenceSpaceEventInit
dictionary.
Properties
In addition to inheriting the properties available on the parent interface, Event
, XRReferenceSpaceEvent
objects include the following properties:
referenceSpace
Read only- An
XRReferenceSpace
indicating the reference space that generated the event. transform
Read only- An
XRRigidTransform
object indicating the position and orientation of the specifiedreferenceSpace
's native origin after the event, defined relative to the coordinate system before the event.
Methods
While XRReferenceSpaceEvent
does not define any methods, it inherits the methods of its parent interface, Event
.
Event types
reset
- The
reset
event is sent to a reference space when its native origin is changed due to a discontinuity, recalibration, or device reset. This is an opportunity for your app to update any stored transforms, position/orientation information, or the likeāor to dump any cached values based on the reference's space's origin so you can recompute them as needed.
Specifications
Specification | Status | Comment |
WebXR Device APIThe definition of 'XRReferenceSpaceEvent' in that specification. | Working Draft | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
XRReferenceSpaceEvent
|
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 |
XRReferenceSpaceEvent() constructor
|
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 |
referenceSpace
|
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 |
transform
|
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
XRReferenceSpaceEvent by Mozilla Contributors is licensed under CC-BY-SA 2.5.