web_sys/features/
gen_XrSession.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 (extends = EventTarget , extends = :: js_sys :: Object , js_name = XRSession , typescript_type = "XRSession")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `XrSession` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
15    #[doc = ""]
16    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18    pub type XrSession;
19    #[cfg(web_sys_unstable_apis)]
20    #[cfg(feature = "XrVisibilityState")]
21    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = visibilityState)]
22    #[doc = "Getter for the `visibilityState` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/visibilityState)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrVisibilityState`*"]
27    #[doc = ""]
28    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
30    pub fn visibility_state(this: &XrSession) -> XrVisibilityState;
31    #[cfg(web_sys_unstable_apis)]
32    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = frameRate)]
33    #[doc = "Getter for the `frameRate` field of this object."]
34    #[doc = ""]
35    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/frameRate)"]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
38    #[doc = ""]
39    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
40    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
41    pub fn frame_rate(this: &XrSession) -> Option<f32>;
42    #[cfg(web_sys_unstable_apis)]
43    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = supportedFrameRates)]
44    #[doc = "Getter for the `supportedFrameRates` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/supportedFrameRates)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
49    #[doc = ""]
50    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
51    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
52    pub fn supported_frame_rates(this: &XrSession) -> Option<::alloc::vec::Vec<f32>>;
53    #[cfg(web_sys_unstable_apis)]
54    #[cfg(feature = "XrRenderState")]
55    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = renderState)]
56    #[doc = "Getter for the `renderState` field of this object."]
57    #[doc = ""]
58    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/renderState)"]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `XrRenderState`, `XrSession`*"]
61    #[doc = ""]
62    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
63    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
64    pub fn render_state(this: &XrSession) -> XrRenderState;
65    #[cfg(web_sys_unstable_apis)]
66    #[cfg(feature = "XrInputSourceArray")]
67    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = inputSources)]
68    #[doc = "Getter for the `inputSources` field of this object."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputSources)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`, `XrSession`*"]
73    #[doc = ""]
74    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
75    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
76    pub fn input_sources(this: &XrSession) -> XrInputSourceArray;
77    #[cfg(web_sys_unstable_apis)]
78    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onend)]
79    #[doc = "Getter for the `onend` field of this object."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onend)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
84    #[doc = ""]
85    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
87    pub fn onend(this: &XrSession) -> Option<::js_sys::Function>;
88    #[cfg(web_sys_unstable_apis)]
89    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onend)]
90    #[doc = "Setter for the `onend` field of this object."]
91    #[doc = ""]
92    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onend)"]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
95    #[doc = ""]
96    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
97    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
98    pub fn set_onend(this: &XrSession, value: Option<&::js_sys::Function>);
99    #[cfg(web_sys_unstable_apis)]
100    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = oninputsourceschange)]
101    #[doc = "Getter for the `oninputsourceschange` field of this object."]
102    #[doc = ""]
103    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/oninputsourceschange)"]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
106    #[doc = ""]
107    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
108    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
109    pub fn oninputsourceschange(this: &XrSession) -> Option<::js_sys::Function>;
110    #[cfg(web_sys_unstable_apis)]
111    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = oninputsourceschange)]
112    #[doc = "Setter for the `oninputsourceschange` field of this object."]
113    #[doc = ""]
114    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/oninputsourceschange)"]
115    #[doc = ""]
116    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
117    #[doc = ""]
118    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
119    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
120    pub fn set_oninputsourceschange(this: &XrSession, value: Option<&::js_sys::Function>);
121    #[cfg(web_sys_unstable_apis)]
122    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onselect)]
123    #[doc = "Getter for the `onselect` field of this object."]
124    #[doc = ""]
125    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselect)"]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
128    #[doc = ""]
129    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
130    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
131    pub fn onselect(this: &XrSession) -> Option<::js_sys::Function>;
132    #[cfg(web_sys_unstable_apis)]
133    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onselect)]
134    #[doc = "Setter for the `onselect` field of this object."]
135    #[doc = ""]
136    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselect)"]
137    #[doc = ""]
138    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
139    #[doc = ""]
140    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
141    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
142    pub fn set_onselect(this: &XrSession, value: Option<&::js_sys::Function>);
143    #[cfg(web_sys_unstable_apis)]
144    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onselectstart)]
145    #[doc = "Getter for the `onselectstart` field of this object."]
146    #[doc = ""]
147    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectstart)"]
148    #[doc = ""]
149    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
150    #[doc = ""]
151    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
152    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
153    pub fn onselectstart(this: &XrSession) -> Option<::js_sys::Function>;
154    #[cfg(web_sys_unstable_apis)]
155    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onselectstart)]
156    #[doc = "Setter for the `onselectstart` field of this object."]
157    #[doc = ""]
158    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectstart)"]
159    #[doc = ""]
160    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
161    #[doc = ""]
162    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
163    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
164    pub fn set_onselectstart(this: &XrSession, value: Option<&::js_sys::Function>);
165    #[cfg(web_sys_unstable_apis)]
166    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onselectend)]
167    #[doc = "Getter for the `onselectend` field of this object."]
168    #[doc = ""]
169    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectend)"]
170    #[doc = ""]
171    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
172    #[doc = ""]
173    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
174    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
175    pub fn onselectend(this: &XrSession) -> Option<::js_sys::Function>;
176    #[cfg(web_sys_unstable_apis)]
177    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onselectend)]
178    #[doc = "Setter for the `onselectend` field of this object."]
179    #[doc = ""]
180    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectend)"]
181    #[doc = ""]
182    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
183    #[doc = ""]
184    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
185    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
186    pub fn set_onselectend(this: &XrSession, value: Option<&::js_sys::Function>);
187    #[cfg(web_sys_unstable_apis)]
188    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueeze)]
189    #[doc = "Getter for the `onsqueeze` field of this object."]
190    #[doc = ""]
191    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueeze)"]
192    #[doc = ""]
193    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
194    #[doc = ""]
195    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
196    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
197    pub fn onsqueeze(this: &XrSession) -> Option<::js_sys::Function>;
198    #[cfg(web_sys_unstable_apis)]
199    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueeze)]
200    #[doc = "Setter for the `onsqueeze` field of this object."]
201    #[doc = ""]
202    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueeze)"]
203    #[doc = ""]
204    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
205    #[doc = ""]
206    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
207    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
208    pub fn set_onsqueeze(this: &XrSession, value: Option<&::js_sys::Function>);
209    #[cfg(web_sys_unstable_apis)]
210    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueezestart)]
211    #[doc = "Getter for the `onsqueezestart` field of this object."]
212    #[doc = ""]
213    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezestart)"]
214    #[doc = ""]
215    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
216    #[doc = ""]
217    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
218    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
219    pub fn onsqueezestart(this: &XrSession) -> Option<::js_sys::Function>;
220    #[cfg(web_sys_unstable_apis)]
221    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueezestart)]
222    #[doc = "Setter for the `onsqueezestart` field of this object."]
223    #[doc = ""]
224    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezestart)"]
225    #[doc = ""]
226    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
227    #[doc = ""]
228    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
229    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
230    pub fn set_onsqueezestart(this: &XrSession, value: Option<&::js_sys::Function>);
231    #[cfg(web_sys_unstable_apis)]
232    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueezeend)]
233    #[doc = "Getter for the `onsqueezeend` field of this object."]
234    #[doc = ""]
235    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezeend)"]
236    #[doc = ""]
237    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
238    #[doc = ""]
239    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
240    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
241    pub fn onsqueezeend(this: &XrSession) -> Option<::js_sys::Function>;
242    #[cfg(web_sys_unstable_apis)]
243    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueezeend)]
244    #[doc = "Setter for the `onsqueezeend` field of this object."]
245    #[doc = ""]
246    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezeend)"]
247    #[doc = ""]
248    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
249    #[doc = ""]
250    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
251    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
252    pub fn set_onsqueezeend(this: &XrSession, value: Option<&::js_sys::Function>);
253    #[cfg(web_sys_unstable_apis)]
254    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onvisibilitychange)]
255    #[doc = "Getter for the `onvisibilitychange` field of this object."]
256    #[doc = ""]
257    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onvisibilitychange)"]
258    #[doc = ""]
259    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
260    #[doc = ""]
261    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
262    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
263    pub fn onvisibilitychange(this: &XrSession) -> Option<::js_sys::Function>;
264    #[cfg(web_sys_unstable_apis)]
265    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onvisibilitychange)]
266    #[doc = "Setter for the `onvisibilitychange` field of this object."]
267    #[doc = ""]
268    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onvisibilitychange)"]
269    #[doc = ""]
270    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
271    #[doc = ""]
272    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
273    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
274    pub fn set_onvisibilitychange(this: &XrSession, value: Option<&::js_sys::Function>);
275    #[cfg(web_sys_unstable_apis)]
276    # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onframeratechange)]
277    #[doc = "Getter for the `onframeratechange` field of this object."]
278    #[doc = ""]
279    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onframeratechange)"]
280    #[doc = ""]
281    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
282    #[doc = ""]
283    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
284    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
285    pub fn onframeratechange(this: &XrSession) -> Option<::js_sys::Function>;
286    #[cfg(web_sys_unstable_apis)]
287    # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onframeratechange)]
288    #[doc = "Setter for the `onframeratechange` field of this object."]
289    #[doc = ""]
290    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onframeratechange)"]
291    #[doc = ""]
292    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
293    #[doc = ""]
294    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
295    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
296    pub fn set_onframeratechange(this: &XrSession, value: Option<&::js_sys::Function>);
297    #[cfg(web_sys_unstable_apis)]
298    # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = cancelAnimationFrame)]
299    #[doc = "The `cancelAnimationFrame()` method."]
300    #[doc = ""]
301    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/cancelAnimationFrame)"]
302    #[doc = ""]
303    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
304    #[doc = ""]
305    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
306    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
307    pub fn cancel_animation_frame(this: &XrSession, handle: u32);
308    #[cfg(web_sys_unstable_apis)]
309    # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = end)]
310    #[doc = "The `end()` method."]
311    #[doc = ""]
312    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/end)"]
313    #[doc = ""]
314    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
315    #[doc = ""]
316    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
317    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
318    pub fn end(this: &XrSession) -> ::js_sys::Promise;
319    #[cfg(web_sys_unstable_apis)]
320    # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = requestAnimationFrame)]
321    #[doc = "The `requestAnimationFrame()` method."]
322    #[doc = ""]
323    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestAnimationFrame)"]
324    #[doc = ""]
325    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
326    #[doc = ""]
327    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
328    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
329    pub fn request_animation_frame(this: &XrSession, callback: &::js_sys::Function) -> u32;
330    #[cfg(web_sys_unstable_apis)]
331    #[cfg(feature = "XrReferenceSpaceType")]
332    # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = requestReferenceSpace)]
333    #[doc = "The `requestReferenceSpace()` method."]
334    #[doc = ""]
335    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestReferenceSpace)"]
336    #[doc = ""]
337    #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceType`, `XrSession`*"]
338    #[doc = ""]
339    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
340    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
341    pub fn request_reference_space(
342        this: &XrSession,
343        type_: XrReferenceSpaceType,
344    ) -> ::js_sys::Promise;
345    #[cfg(web_sys_unstable_apis)]
346    # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateRenderState)]
347    #[doc = "The `updateRenderState()` method."]
348    #[doc = ""]
349    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState)"]
350    #[doc = ""]
351    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
352    #[doc = ""]
353    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
354    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
355    pub fn update_render_state(this: &XrSession);
356    #[cfg(web_sys_unstable_apis)]
357    #[cfg(feature = "XrRenderStateInit")]
358    # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateRenderState)]
359    #[doc = "The `updateRenderState()` method."]
360    #[doc = ""]
361    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState)"]
362    #[doc = ""]
363    #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`, `XrSession`*"]
364    #[doc = ""]
365    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
366    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
367    pub fn update_render_state_with_state(this: &XrSession, state: &XrRenderStateInit);
368    #[cfg(web_sys_unstable_apis)]
369    # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateTargetFrameRate)]
370    #[doc = "The `updateTargetFrameRate()` method."]
371    #[doc = ""]
372    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateTargetFrameRate)"]
373    #[doc = ""]
374    #[doc = "*This API requires the following crate features to be activated: `XrSession`*"]
375    #[doc = ""]
376    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
377    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
378    pub fn update_target_frame_rate(this: &XrSession, rate: f32) -> ::js_sys::Promise;
379}