XRSessionEventInit

Secure context

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

The XRSessionEventInit dictionary is used when calling the XRSessionEvent() constructor to provide the new event's initial values. You're unlikely to need to create these events yourself, however, as they're created by the XR system.

Properties

session
The XRSession to which the event is to be delivered.

Examples

<tbd>

Specifications

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

Browser compatibility

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