XRReferenceSpaceEvent.referenceSpace

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The read-only XRReferenceSpaceEvent property referenceSpace specifies the reference space which is the originator of the event.

Syntax

let refSpace = xrReferenceSpaceEvent.referenceSpace;

Value

An XRReferenceSpace indicating the source of the event.

Examples

Specifications

Specification Status Comment
WebXR Device API
The definition of 'XRReferenceSpaceEvent.referenceSpace' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
referenceSpaceChrome Full support 79Edge Full support 79Firefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android Full support 79Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 11.2

Legend

Full support  
Full support
No support  
No support