XRSessionEventInit

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

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.

特性

session
XRSession to which the event is to be delivered.

范例

<tbd>

规范

规范 状态 Comment
WebXR 设备 API
The definition of 'XRSessionEventInit' in that specification.
工作草案 初始定义。

浏览器兼容性

No compatibility data found. Please contribute data for "api.XRSessionEventInit" (depth: 1) to the MDN 兼容性数据存储库 .