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
Specification | Status | Comment |
---|---|---|
WebXR Device API The definition of 'XRSessionEventInit.session' in that specification. |
Working Draft | Initial definition. |