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

XRSessionEventInit dictionary's session property specifies the XRSession for which the event describes a state change.

句法

let sessionEventInit = {
  session: xrSession
};
mySessionEvent = new XRSessionEvent(type, sessionEventInit);
mySessionEvent = new XRSessionEvent(type,
                 { session: XRSession });
					

XRSession object indicating which WebXR session the event is referring to.

规范

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

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

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

元数据

  • 最后修改:

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1