Skip to main content

web_sys/features/
gen_XrPermissionStatus.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    #[wasm_bindgen(
9        extends = "PermissionStatus",
10        extends = "EventTarget",
11        extends = "::js_sys::Object",
12        js_name = "XRPermissionStatus",
13        typescript_type = "XRPermissionStatus"
14    )]
15    #[derive(Debug, Clone, PartialEq, Eq)]
16    #[doc = "The `XrPermissionStatus` class."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `XrPermissionStatus`*"]
21    #[doc = ""]
22    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24    pub type XrPermissionStatus;
25    #[cfg(web_sys_unstable_apis)]
26    #[wasm_bindgen(method, getter, js_class = "XRPermissionStatus", js_name = "granted")]
27    #[doc = "Getter for the `granted` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus/granted)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `XrPermissionStatus`*"]
32    #[doc = ""]
33    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35    pub fn granted(this: &XrPermissionStatus) -> ::js_sys::Array;
36    #[cfg(web_sys_unstable_apis)]
37    #[wasm_bindgen(method, setter, js_class = "XRPermissionStatus", js_name = "granted")]
38    #[doc = "Setter for the `granted` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus/granted)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `XrPermissionStatus`*"]
43    #[doc = ""]
44    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
45    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
46    pub fn set_granted(this: &XrPermissionStatus, value: &[::wasm_bindgen::JsValue]);
47}