XRPermissionStatus

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

草案
此页面不完整。

XRPermissionStatus interface defines the object returned by calling navigator.permissions.query() xr permission name; it indicates whether or not the app or site has permission to use WebXR, an may be monitored over time for changes to that permissions tate.

特性

In addition to the properties listed below, XRPermissionStatus includes the properties defined by its parent interface, PermissionStatus .

granted
An array of strings listing the names of the features for which permission has been granted as of the time at which navigator.permissions.query() was called. Any feature which was specified in either the optionalFeatures or requiredFeatures when calling navigator.permissions.query() are listed in granted if and only if permission to use them is granted.

方法

No methods are defined by XRPermissionStatus .

Usage notes

范例

规范

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

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
XRPermissionStatus Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No
granted Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No

图例

不支持
不支持

另请参阅