Skip to main content

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