1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "Navigator",
10 typescript_type = "Navigator"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `Navigator` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
18 pub type Navigator;
19 #[cfg(feature = "Clipboard")]
20 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "clipboard")]
21 #[doc = "Getter for the `clipboard` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `Clipboard`, `Navigator`*"]
26 pub fn clipboard(this: &Navigator) -> Clipboard;
27 #[cfg(feature = "Permissions")]
28 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "permissions")]
29 #[doc = "Getter for the `permissions` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/permissions)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Permissions`*"]
34 pub fn permissions(this: &Navigator) -> Result<Permissions, JsValue>;
35 #[cfg(feature = "MimeTypeArray")]
36 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "mimeTypes")]
37 #[doc = "Getter for the `mimeTypes` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mimeTypes)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`, `Navigator`*"]
42 pub fn mime_types(this: &Navigator) -> Result<MimeTypeArray, JsValue>;
43 #[cfg(feature = "PluginArray")]
44 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "plugins")]
45 #[doc = "Getter for the `plugins` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/plugins)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `PluginArray`*"]
50 pub fn plugins(this: &Navigator) -> Result<PluginArray, JsValue>;
51 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "doNotTrack")]
52 #[doc = "Getter for the `doNotTrack` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
57 pub fn do_not_track(this: &Navigator) -> ::alloc::string::String;
58 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "maxTouchPoints")]
59 #[doc = "Getter for the `maxTouchPoints` field of this object."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
64 pub fn max_touch_points(this: &Navigator) -> i32;
65 #[cfg(feature = "MediaCapabilities")]
66 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "mediaCapabilities")]
67 #[doc = "Getter for the `mediaCapabilities` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaCapabilities)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `Navigator`*"]
72 pub fn media_capabilities(this: &Navigator) -> MediaCapabilities;
73 #[cfg(feature = "NetworkInformation")]
74 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "connection")]
75 #[doc = "Getter for the `connection` field of this object."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `NetworkInformation`*"]
80 pub fn connection(this: &Navigator) -> Result<NetworkInformation, JsValue>;
81 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "activeVRDisplays")]
82 #[doc = "Getter for the `activeVRDisplays` field of this object."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/activeVRDisplays)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
87 pub fn active_vr_displays(this: &Navigator) -> ::js_sys::Array;
88 #[cfg(feature = "MediaDevices")]
89 #[wasm_bindgen(
90 catch,
91 method,
92 getter,
93 js_class = "Navigator",
94 js_name = "mediaDevices"
95 )]
96 #[doc = "Getter for the `mediaDevices` field of this object."]
97 #[doc = ""]
98 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices)"]
99 #[doc = ""]
100 #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `Navigator`*"]
101 pub fn media_devices(this: &Navigator) -> Result<MediaDevices, JsValue>;
102 #[cfg(feature = "ServiceWorkerContainer")]
103 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "serviceWorker")]
104 #[doc = "Getter for the `serviceWorker` field of this object."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serviceWorker)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ServiceWorkerContainer`*"]
109 pub fn service_worker(this: &Navigator) -> ServiceWorkerContainer;
110 #[cfg(feature = "Presentation")]
111 #[wasm_bindgen(
112 catch,
113 method,
114 getter,
115 js_class = "Navigator",
116 js_name = "presentation"
117 )]
118 #[doc = "Getter for the `presentation` field of this object."]
119 #[doc = ""]
120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/presentation)"]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Presentation`*"]
123 pub fn presentation(this: &Navigator) -> Result<Option<Presentation>, JsValue>;
124 #[cfg(feature = "CredentialsContainer")]
125 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "credentials")]
126 #[doc = "Getter for the `credentials` field of this object."]
127 #[doc = ""]
128 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/credentials)"]
129 #[doc = ""]
130 #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`, `Navigator`*"]
131 pub fn credentials(this: &Navigator) -> CredentialsContainer;
132 #[cfg(feature = "UserActivation")]
133 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "userActivation")]
134 #[doc = "Getter for the `userActivation` field of this object."]
135 #[doc = ""]
136 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userActivation)"]
137 #[doc = ""]
138 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `UserActivation`*"]
139 pub fn user_activation(this: &Navigator) -> UserActivation;
140 #[cfg(web_sys_unstable_apis)]
141 #[cfg(feature = "Bluetooth")]
142 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "bluetooth")]
143 #[doc = "Getter for the `bluetooth` field of this object."]
144 #[doc = ""]
145 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/bluetooth)"]
146 #[doc = ""]
147 #[doc = "*This API requires the following crate features to be activated: `Bluetooth`, `Navigator`*"]
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 bluetooth(this: &Navigator) -> Option<Bluetooth>;
152 #[cfg(web_sys_unstable_apis)]
153 #[cfg(feature = "MediaSession")]
154 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "mediaSession")]
155 #[doc = "Getter for the `mediaSession` field of this object."]
156 #[doc = ""]
157 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaSession)"]
158 #[doc = ""]
159 #[doc = "*This API requires the following crate features to be activated: `MediaSession`, `Navigator`*"]
160 #[doc = ""]
161 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
162 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
163 pub fn media_session(this: &Navigator) -> MediaSession;
164 #[cfg(web_sys_unstable_apis)]
165 #[cfg(feature = "WakeLock")]
166 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "wakeLock")]
167 #[doc = "Getter for the `wakeLock` field of this object."]
168 #[doc = ""]
169 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/wakeLock)"]
170 #[doc = ""]
171 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `WakeLock`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
175 pub fn wake_lock(this: &Navigator) -> WakeLock;
176 #[cfg(web_sys_unstable_apis)]
177 #[cfg(feature = "Hid")]
178 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "hid")]
179 #[doc = "Getter for the `hid` field of this object."]
180 #[doc = ""]
181 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hid)"]
182 #[doc = ""]
183 #[doc = "*This API requires the following crate features to be activated: `Hid`, `Navigator`*"]
184 #[doc = ""]
185 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
186 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
187 pub fn hid(this: &Navigator) -> Hid;
188 #[cfg(web_sys_unstable_apis)]
189 #[cfg(feature = "Serial")]
190 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "serial")]
191 #[doc = "Getter for the `serial` field of this object."]
192 #[doc = ""]
193 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serial)"]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Serial`*"]
196 #[doc = ""]
197 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
198 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
199 pub fn serial(this: &Navigator) -> Serial;
200 #[cfg(web_sys_unstable_apis)]
201 #[cfg(feature = "Usb")]
202 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "usb")]
203 #[doc = "Getter for the `usb` field of this object."]
204 #[doc = ""]
205 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/usb)"]
206 #[doc = ""]
207 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Usb`*"]
208 #[doc = ""]
209 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
210 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
211 pub fn usb(this: &Navigator) -> Usb;
212 #[cfg(web_sys_unstable_apis)]
213 #[cfg(feature = "XrSystem")]
214 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "xr")]
215 #[doc = "Getter for the `xr` field of this object."]
216 #[doc = ""]
217 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/xr)"]
218 #[doc = ""]
219 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `XrSystem`*"]
220 #[doc = ""]
221 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
222 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
223 pub fn xr(this: &Navigator) -> XrSystem;
224 #[cfg(web_sys_unstable_apis)]
225 #[cfg(feature = "Scheduling")]
226 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "scheduling")]
227 #[doc = "Getter for the `scheduling` field of this object."]
228 #[doc = ""]
229 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/scheduling)"]
230 #[doc = ""]
231 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Scheduling`*"]
232 #[doc = ""]
233 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
234 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
235 pub fn scheduling(this: &Navigator) -> Scheduling;
236 #[wasm_bindgen(
237 method,
238 getter,
239 js_class = "Navigator",
240 js_name = "hardwareConcurrency"
241 )]
242 #[doc = "Getter for the `hardwareConcurrency` field of this object."]
243 #[doc = ""]
244 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency)"]
245 #[doc = ""]
246 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
247 pub fn hardware_concurrency(this: &Navigator) -> f64;
248 #[cfg(web_sys_unstable_apis)]
249 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "deviceMemory")]
250 #[doc = "Getter for the `deviceMemory` field of this object."]
251 #[doc = ""]
252 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory)"]
253 #[doc = ""]
254 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
255 #[doc = ""]
256 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
257 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
258 pub fn device_memory(this: &Navigator) -> f64;
259 #[cfg(web_sys_unstable_apis)]
260 #[cfg(feature = "Gpu")]
261 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "gpu")]
262 #[doc = "Getter for the `gpu` field of this object."]
263 #[doc = ""]
264 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/gpu)"]
265 #[doc = ""]
266 #[doc = "*This API requires the following crate features to be activated: `Gpu`, `Navigator`*"]
267 #[doc = ""]
268 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
269 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
270 pub fn gpu(this: &Navigator) -> Gpu;
271 #[cfg(feature = "Geolocation")]
272 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "geolocation")]
273 #[doc = "Getter for the `geolocation` field of this object."]
274 #[doc = ""]
275 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation)"]
276 #[doc = ""]
277 #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `Navigator`*"]
278 pub fn geolocation(this: &Navigator) -> Result<Geolocation, JsValue>;
279 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "appCodeName")]
280 #[doc = "Getter for the `appCodeName` field of this object."]
281 #[doc = ""]
282 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appCodeName)"]
283 #[doc = ""]
284 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
285 pub fn app_code_name(this: &Navigator) -> Result<::alloc::string::String, JsValue>;
286 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "appName")]
287 #[doc = "Getter for the `appName` field of this object."]
288 #[doc = ""]
289 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appName)"]
290 #[doc = ""]
291 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
292 pub fn app_name(this: &Navigator) -> ::alloc::string::String;
293 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "appVersion")]
294 #[doc = "Getter for the `appVersion` field of this object."]
295 #[doc = ""]
296 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion)"]
297 #[doc = ""]
298 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
299 pub fn app_version(this: &Navigator) -> Result<::alloc::string::String, JsValue>;
300 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "platform")]
301 #[doc = "Getter for the `platform` field of this object."]
302 #[doc = ""]
303 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform)"]
304 #[doc = ""]
305 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
306 pub fn platform(this: &Navigator) -> Result<::alloc::string::String, JsValue>;
307 #[wasm_bindgen(catch, method, getter, js_class = "Navigator", js_name = "userAgent")]
308 #[doc = "Getter for the `userAgent` field of this object."]
309 #[doc = ""]
310 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent)"]
311 #[doc = ""]
312 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
313 pub fn user_agent(this: &Navigator) -> Result<::alloc::string::String, JsValue>;
314 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "product")]
315 #[doc = "Getter for the `product` field of this object."]
316 #[doc = ""]
317 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/product)"]
318 #[doc = ""]
319 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
320 pub fn product(this: &Navigator) -> ::alloc::string::String;
321 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "language")]
322 #[doc = "Getter for the `language` field of this object."]
323 #[doc = ""]
324 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"]
325 #[doc = ""]
326 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
327 pub fn language(this: &Navigator) -> Option<::alloc::string::String>;
328 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "languages")]
329 #[doc = "Getter for the `languages` field of this object."]
330 #[doc = ""]
331 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)"]
332 #[doc = ""]
333 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
334 pub fn languages(this: &Navigator) -> ::js_sys::Array;
335 #[cfg(web_sys_unstable_apis)]
336 #[cfg(feature = "LockManager")]
337 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "locks")]
338 #[doc = "Getter for the `locks` field of this object."]
339 #[doc = ""]
340 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/locks)"]
341 #[doc = ""]
342 #[doc = "*This API requires the following crate features to be activated: `LockManager`, `Navigator`*"]
343 #[doc = ""]
344 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
345 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
346 pub fn locks(this: &Navigator) -> LockManager;
347 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "onLine")]
348 #[doc = "Getter for the `onLine` field of this object."]
349 #[doc = ""]
350 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine)"]
351 #[doc = ""]
352 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
353 pub fn on_line(this: &Navigator) -> bool;
354 #[cfg(feature = "StorageManager")]
355 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "storage")]
356 #[doc = "Getter for the `storage` field of this object."]
357 #[doc = ""]
358 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/storage)"]
359 #[doc = ""]
360 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `StorageManager`*"]
361 pub fn storage(this: &Navigator) -> StorageManager;
362 #[cfg(web_sys_unstable_apis)]
363 #[cfg(feature = "NavigatorUaData")]
364 #[wasm_bindgen(method, getter, js_class = "Navigator", js_name = "userAgentData")]
365 #[doc = "Getter for the `userAgentData` field of this object."]
366 #[doc = ""]
367 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgentData)"]
368 #[doc = ""]
369 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `NavigatorUaData`*"]
370 #[doc = ""]
371 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
372 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
373 pub fn user_agent_data(this: &Navigator) -> NavigatorUaData;
374 #[wasm_bindgen(method, js_class = "Navigator", js_name = "canShare")]
375 #[doc = "The `canShare()` method."]
376 #[doc = ""]
377 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare)"]
378 #[doc = ""]
379 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
380 pub fn can_share(this: &Navigator) -> bool;
381 #[cfg(feature = "ShareData")]
382 #[wasm_bindgen(method, js_class = "Navigator", js_name = "canShare")]
383 #[doc = "The `canShare()` method."]
384 #[doc = ""]
385 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare)"]
386 #[doc = ""]
387 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ShareData`*"]
388 pub fn can_share_with_data(this: &Navigator, data: &ShareData) -> bool;
389 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "getGamepads")]
390 #[doc = "The `getGamepads()` method."]
391 #[doc = ""]
392 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads)"]
393 #[doc = ""]
394 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
395 pub fn get_gamepads(this: &Navigator) -> Result<::js_sys::Array, JsValue>;
396 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "getVRDisplays")]
397 #[doc = "The `getVRDisplays()` method."]
398 #[doc = ""]
399 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getVRDisplays)"]
400 #[doc = ""]
401 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
402 pub fn get_vr_displays(this: &Navigator) -> Result<::js_sys::Promise, JsValue>;
403 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "requestMIDIAccess")]
404 #[doc = "The `requestMIDIAccess()` method."]
405 #[doc = ""]
406 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"]
407 #[doc = ""]
408 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
409 pub fn request_midi_access(this: &Navigator) -> Result<::js_sys::Promise, JsValue>;
410 #[cfg(feature = "MidiOptions")]
411 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "requestMIDIAccess")]
412 #[doc = "The `requestMIDIAccess()` method."]
413 #[doc = ""]
414 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"]
415 #[doc = ""]
416 #[doc = "*This API requires the following crate features to be activated: `MidiOptions`, `Navigator`*"]
417 pub fn request_midi_access_with_options(
418 this: &Navigator,
419 options: &MidiOptions,
420 ) -> Result<::js_sys::Promise, JsValue>;
421 #[wasm_bindgen(
422 method,
423 js_class = "Navigator",
424 js_name = "requestMediaKeySystemAccess"
425 )]
426 #[doc = "The `requestMediaKeySystemAccess()` method."]
427 #[doc = ""]
428 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess)"]
429 #[doc = ""]
430 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
431 pub fn request_media_key_system_access(
432 this: &Navigator,
433 key_system: &str,
434 supported_configurations: &::wasm_bindgen::JsValue,
435 ) -> ::js_sys::Promise;
436 #[cfg(feature = "VrServiceTest")]
437 #[wasm_bindgen(method, js_class = "Navigator", js_name = "requestVRServiceTest")]
438 #[doc = "The `requestVRServiceTest()` method."]
439 #[doc = ""]
440 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestVRServiceTest)"]
441 #[doc = ""]
442 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `VrServiceTest`*"]
443 pub fn request_vr_service_test(this: &Navigator) -> VrServiceTest;
444 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
445 #[doc = "The `sendBeacon()` method."]
446 #[doc = ""]
447 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
448 #[doc = ""]
449 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
450 pub fn send_beacon(this: &Navigator, url: &str) -> Result<bool, JsValue>;
451 #[cfg(feature = "Blob")]
452 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
453 #[doc = "The `sendBeacon()` method."]
454 #[doc = ""]
455 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
456 #[doc = ""]
457 #[doc = "*This API requires the following crate features to be activated: `Blob`, `Navigator`*"]
458 pub fn send_beacon_with_opt_blob(
459 this: &Navigator,
460 url: &str,
461 data: Option<&Blob>,
462 ) -> Result<bool, JsValue>;
463 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
464 #[doc = "The `sendBeacon()` method."]
465 #[doc = ""]
466 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
467 #[doc = ""]
468 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
469 pub fn send_beacon_with_opt_buffer_source(
470 this: &Navigator,
471 url: &str,
472 data: Option<&::js_sys::Object>,
473 ) -> Result<bool, JsValue>;
474 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
475 #[doc = "The `sendBeacon()` method."]
476 #[doc = ""]
477 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
478 #[doc = ""]
479 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
480 pub fn send_beacon_with_opt_u8_array(
481 this: &Navigator,
482 url: &str,
483 data: Option<&mut [u8]>,
484 ) -> Result<bool, JsValue>;
485 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
486 #[doc = "The `sendBeacon()` method."]
487 #[doc = ""]
488 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
489 #[doc = ""]
490 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
491 pub fn send_beacon_with_opt_js_u8_array(
492 this: &Navigator,
493 url: &str,
494 data: Option<&::js_sys::Uint8Array>,
495 ) -> Result<bool, JsValue>;
496 #[cfg(feature = "FormData")]
497 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
498 #[doc = "The `sendBeacon()` method."]
499 #[doc = ""]
500 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
501 #[doc = ""]
502 #[doc = "*This API requires the following crate features to be activated: `FormData`, `Navigator`*"]
503 pub fn send_beacon_with_opt_form_data(
504 this: &Navigator,
505 url: &str,
506 data: Option<&FormData>,
507 ) -> Result<bool, JsValue>;
508 #[cfg(feature = "UrlSearchParams")]
509 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
510 #[doc = "The `sendBeacon()` method."]
511 #[doc = ""]
512 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
513 #[doc = ""]
514 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `UrlSearchParams`*"]
515 pub fn send_beacon_with_opt_url_search_params(
516 this: &Navigator,
517 url: &str,
518 data: Option<&UrlSearchParams>,
519 ) -> Result<bool, JsValue>;
520 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
521 #[doc = "The `sendBeacon()` method."]
522 #[doc = ""]
523 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
524 #[doc = ""]
525 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
526 pub fn send_beacon_with_opt_str(
527 this: &Navigator,
528 url: &str,
529 data: Option<&str>,
530 ) -> Result<bool, JsValue>;
531 #[cfg(feature = "ReadableStream")]
532 #[wasm_bindgen(catch, method, js_class = "Navigator", js_name = "sendBeacon")]
533 #[doc = "The `sendBeacon()` method."]
534 #[doc = ""]
535 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
536 #[doc = ""]
537 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ReadableStream`*"]
538 pub fn send_beacon_with_opt_readable_stream(
539 this: &Navigator,
540 url: &str,
541 data: Option<&ReadableStream>,
542 ) -> Result<bool, JsValue>;
543 #[wasm_bindgen(method, js_class = "Navigator")]
544 #[doc = "The `share()` method."]
545 #[doc = ""]
546 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share)"]
547 #[doc = ""]
548 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
549 pub fn share(this: &Navigator) -> ::js_sys::Promise;
550 #[cfg(feature = "ShareData")]
551 #[wasm_bindgen(method, js_class = "Navigator", js_name = "share")]
552 #[doc = "The `share()` method."]
553 #[doc = ""]
554 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share)"]
555 #[doc = ""]
556 #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ShareData`*"]
557 pub fn share_with_data(this: &Navigator, data: &ShareData) -> ::js_sys::Promise;
558 #[wasm_bindgen(method, js_class = "Navigator", js_name = "vibrate")]
559 #[doc = "The `vibrate()` method."]
560 #[doc = ""]
561 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"]
562 #[doc = ""]
563 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
564 pub fn vibrate_with_duration(this: &Navigator, pattern: u32) -> bool;
565 #[wasm_bindgen(method, js_class = "Navigator", js_name = "vibrate")]
566 #[doc = "The `vibrate()` method."]
567 #[doc = ""]
568 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"]
569 #[doc = ""]
570 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
571 pub fn vibrate_with_pattern(this: &Navigator, pattern: &::wasm_bindgen::JsValue) -> bool;
572 #[wasm_bindgen(
573 catch,
574 method,
575 js_class = "Navigator",
576 js_name = "registerContentHandler"
577 )]
578 #[doc = "The `registerContentHandler()` method."]
579 #[doc = ""]
580 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerContentHandler)"]
581 #[doc = ""]
582 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
583 pub fn register_content_handler(
584 this: &Navigator,
585 mime_type: &str,
586 url: &str,
587 title: &str,
588 ) -> Result<(), JsValue>;
589 #[wasm_bindgen(
590 catch,
591 method,
592 js_class = "Navigator",
593 js_name = "registerProtocolHandler"
594 )]
595 #[doc = "The `registerProtocolHandler()` method."]
596 #[doc = ""]
597 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)"]
598 #[doc = ""]
599 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
600 pub fn register_protocol_handler(
601 this: &Navigator,
602 scheme: &str,
603 url: &str,
604 title: &str,
605 ) -> Result<(), JsValue>;
606 #[wasm_bindgen(method, js_class = "Navigator", js_name = "taintEnabled")]
607 #[doc = "The `taintEnabled()` method."]
608 #[doc = ""]
609 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/taintEnabled)"]
610 #[doc = ""]
611 #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
612 pub fn taint_enabled(this: &Navigator) -> bool;
613}