Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The XRSessionEventInit
dictionary's session
property specifies the XRSession
for which the event describes a state change.
Syntax
let sessionEventInit = { session: xrSession }; mySessionEvent = new XRSessionEvent(type, sessionEventInit); mySessionEvent = new XRSessionEvent(type, { session: XRSession });
Value
An XRSession
object indicating which WebXR session the event is referring to.
Specifications
Specification | Status | Comment |
---|---|---|
WebXR Device API The definition of 'XRSessionEventInit.session' in that specification. |
Working Draft | Initial definition. |
Browser compatibility
The compatibility table on 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.
No compatibility data found. Please contribute data for "api.XRSessionEventInit.session" (depth: 1) to the MDN compatibility data repository.