安全上下文
此特征只可用于 安全上下文 (HTTPS),在某些或所有 支持浏览器 .

XRInputSourcesChangeEventInit property removed is an array of zero or more XRInputSource objects, each representing one input source which has been removed from the XRSession .

句法

let inputSourcesEventInit = {
  session: xrSession,
  added: [newDevice1, ..., newDeviceN],
  removed: [removedDevice1, ..., newDeviceN],
};
myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange", inputSourcesEventInit);
myInputSourcesChangeEvent = new XRInputSourcesChangeEventInit("inputsourceschange",
                            {
                              session: xrSession,
                              added: addedDeviceList,
                              removed: removedDeviceList
                            });
					

数组 of zero or more XRInputSource objects, each representing one input device removed from the XR system.

规范

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

浏览器兼容性

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

元数据

  • 最后修改: