XRSessionEventInit.session

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

No specification found

No specification data found for api.XRSessionEventInit.session.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

No compatibility data found for api.XRSessionEventInit.session.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.