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. Please contribute data for "api.XRSessionEventInit" (depth: 1) to the MDN compatibility data repository.