1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Navigator , typescript_type = "Navigator")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `Navigator` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
13     pub type Navigator;
14     #[cfg(feature = "Permissions")]
15     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = permissions)]
16     #[doc = "Getter for the `permissions` field of this object."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/permissions)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Permissions`*"]
permissions(this: &Navigator) -> Result<Permissions, JsValue>21     pub fn permissions(this: &Navigator) -> Result<Permissions, JsValue>;
22     #[cfg(feature = "MimeTypeArray")]
23     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = mimeTypes)]
24     #[doc = "Getter for the `mimeTypes` field of this object."]
25     #[doc = ""]
26     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mimeTypes)"]
27     #[doc = ""]
28     #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`, `Navigator`*"]
mime_types(this: &Navigator) -> Result<MimeTypeArray, JsValue>29     pub fn mime_types(this: &Navigator) -> Result<MimeTypeArray, JsValue>;
30     #[cfg(feature = "PluginArray")]
31     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = plugins)]
32     #[doc = "Getter for the `plugins` field of this object."]
33     #[doc = ""]
34     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/plugins)"]
35     #[doc = ""]
36     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `PluginArray`*"]
plugins(this: &Navigator) -> Result<PluginArray, JsValue>37     pub fn plugins(this: &Navigator) -> Result<PluginArray, JsValue>;
38     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = doNotTrack)]
39     #[doc = "Getter for the `doNotTrack` field of this object."]
40     #[doc = ""]
41     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack)"]
42     #[doc = ""]
43     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
do_not_track(this: &Navigator) -> String44     pub fn do_not_track(this: &Navigator) -> String;
45     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = maxTouchPoints)]
46     #[doc = "Getter for the `maxTouchPoints` field of this object."]
47     #[doc = ""]
48     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints)"]
49     #[doc = ""]
50     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
max_touch_points(this: &Navigator) -> i3251     pub fn max_touch_points(this: &Navigator) -> i32;
52     #[cfg(feature = "MediaCapabilities")]
53     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = mediaCapabilities)]
54     #[doc = "Getter for the `mediaCapabilities` field of this object."]
55     #[doc = ""]
56     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaCapabilities)"]
57     #[doc = ""]
58     #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `Navigator`*"]
media_capabilities(this: &Navigator) -> MediaCapabilities59     pub fn media_capabilities(this: &Navigator) -> MediaCapabilities;
60     #[cfg(feature = "NetworkInformation")]
61     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = connection)]
62     #[doc = "Getter for the `connection` field of this object."]
63     #[doc = ""]
64     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection)"]
65     #[doc = ""]
66     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `NetworkInformation`*"]
connection(this: &Navigator) -> Result<NetworkInformation, JsValue>67     pub fn connection(this: &Navigator) -> Result<NetworkInformation, JsValue>;
68     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = activeVRDisplays)]
69     #[doc = "Getter for the `activeVRDisplays` field of this object."]
70     #[doc = ""]
71     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/activeVRDisplays)"]
72     #[doc = ""]
73     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
active_vr_displays(this: &Navigator) -> ::js_sys::Array74     pub fn active_vr_displays(this: &Navigator) -> ::js_sys::Array;
75     #[cfg(feature = "MediaDevices")]
76     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = mediaDevices)]
77     #[doc = "Getter for the `mediaDevices` field of this object."]
78     #[doc = ""]
79     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices)"]
80     #[doc = ""]
81     #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `Navigator`*"]
media_devices(this: &Navigator) -> Result<MediaDevices, JsValue>82     pub fn media_devices(this: &Navigator) -> Result<MediaDevices, JsValue>;
83     #[cfg(feature = "ServiceWorkerContainer")]
84     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = serviceWorker)]
85     #[doc = "Getter for the `serviceWorker` field of this object."]
86     #[doc = ""]
87     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serviceWorker)"]
88     #[doc = ""]
89     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ServiceWorkerContainer`*"]
service_worker(this: &Navigator) -> ServiceWorkerContainer90     pub fn service_worker(this: &Navigator) -> ServiceWorkerContainer;
91     #[cfg(feature = "Presentation")]
92     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = presentation)]
93     #[doc = "Getter for the `presentation` field of this object."]
94     #[doc = ""]
95     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/presentation)"]
96     #[doc = ""]
97     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Presentation`*"]
presentation(this: &Navigator) -> Result<Option<Presentation>, JsValue>98     pub fn presentation(this: &Navigator) -> Result<Option<Presentation>, JsValue>;
99     #[cfg(feature = "CredentialsContainer")]
100     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = credentials)]
101     #[doc = "Getter for the `credentials` field of this object."]
102     #[doc = ""]
103     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/credentials)"]
104     #[doc = ""]
105     #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`, `Navigator`*"]
credentials(this: &Navigator) -> CredentialsContainer106     pub fn credentials(this: &Navigator) -> CredentialsContainer;
107     #[cfg(web_sys_unstable_apis)]
108     #[cfg(feature = "Bluetooth")]
109     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = bluetooth)]
110     #[doc = "Getter for the `bluetooth` field of this object."]
111     #[doc = ""]
112     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/bluetooth)"]
113     #[doc = ""]
114     #[doc = "*This API requires the following crate features to be activated: `Bluetooth`, `Navigator`*"]
115     #[doc = ""]
116     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
117     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
bluetooth(this: &Navigator) -> Option<Bluetooth>118     pub fn bluetooth(this: &Navigator) -> Option<Bluetooth>;
119     #[cfg(web_sys_unstable_apis)]
120     #[cfg(feature = "Clipboard")]
121     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = clipboard)]
122     #[doc = "Getter for the `clipboard` field of this object."]
123     #[doc = ""]
124     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard)"]
125     #[doc = ""]
126     #[doc = "*This API requires the following crate features to be activated: `Clipboard`, `Navigator`*"]
127     #[doc = ""]
128     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
129     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
clipboard(this: &Navigator) -> Option<Clipboard>130     pub fn clipboard(this: &Navigator) -> Option<Clipboard>;
131     #[cfg(web_sys_unstable_apis)]
132     #[cfg(feature = "WakeLock")]
133     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = wakeLock)]
134     #[doc = "Getter for the `wakeLock` field of this object."]
135     #[doc = ""]
136     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/wakeLock)"]
137     #[doc = ""]
138     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `WakeLock`*"]
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)*"]
wake_lock(this: &Navigator) -> WakeLock142     pub fn wake_lock(this: &Navigator) -> WakeLock;
143     #[cfg(web_sys_unstable_apis)]
144     #[cfg(feature = "Hid")]
145     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = hid)]
146     #[doc = "Getter for the `hid` field of this object."]
147     #[doc = ""]
148     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hid)"]
149     #[doc = ""]
150     #[doc = "*This API requires the following crate features to be activated: `Hid`, `Navigator`*"]
151     #[doc = ""]
152     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
153     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
hid(this: &Navigator) -> Hid154     pub fn hid(this: &Navigator) -> Hid;
155     #[cfg(web_sys_unstable_apis)]
156     #[cfg(feature = "Usb")]
157     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = usb)]
158     #[doc = "Getter for the `usb` field of this object."]
159     #[doc = ""]
160     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/usb)"]
161     #[doc = ""]
162     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Usb`*"]
163     #[doc = ""]
164     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
165     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
usb(this: &Navigator) -> Usb166     pub fn usb(this: &Navigator) -> Usb;
167     #[cfg(web_sys_unstable_apis)]
168     #[cfg(feature = "Xr")]
169     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = xr)]
170     #[doc = "Getter for the `xr` field of this object."]
171     #[doc = ""]
172     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/xr)"]
173     #[doc = ""]
174     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Xr`*"]
175     #[doc = ""]
176     #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
177     #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
xr(this: &Navigator) -> Xr178     pub fn xr(this: &Navigator) -> Xr;
179     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = hardwareConcurrency)]
180     #[doc = "Getter for the `hardwareConcurrency` field of this object."]
181     #[doc = ""]
182     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency)"]
183     #[doc = ""]
184     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
hardware_concurrency(this: &Navigator) -> f64185     pub fn hardware_concurrency(this: &Navigator) -> f64;
186     #[cfg(web_sys_unstable_apis)]
187     #[cfg(feature = "Gpu")]
188     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = gpu)]
189     #[doc = "Getter for the `gpu` field of this object."]
190     #[doc = ""]
191     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/gpu)"]
192     #[doc = ""]
193     #[doc = "*This API requires the following crate features to be activated: `Gpu`, `Navigator`*"]
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)*"]
gpu(this: &Navigator) -> Gpu197     pub fn gpu(this: &Navigator) -> Gpu;
198     #[cfg(feature = "Geolocation")]
199     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = geolocation)]
200     #[doc = "Getter for the `geolocation` field of this object."]
201     #[doc = ""]
202     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation)"]
203     #[doc = ""]
204     #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `Navigator`*"]
geolocation(this: &Navigator) -> Result<Geolocation, JsValue>205     pub fn geolocation(this: &Navigator) -> Result<Geolocation, JsValue>;
206     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = appCodeName)]
207     #[doc = "Getter for the `appCodeName` field of this object."]
208     #[doc = ""]
209     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appCodeName)"]
210     #[doc = ""]
211     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
app_code_name(this: &Navigator) -> Result<String, JsValue>212     pub fn app_code_name(this: &Navigator) -> Result<String, JsValue>;
213     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = appName)]
214     #[doc = "Getter for the `appName` field of this object."]
215     #[doc = ""]
216     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appName)"]
217     #[doc = ""]
218     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
app_name(this: &Navigator) -> String219     pub fn app_name(this: &Navigator) -> String;
220     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = appVersion)]
221     #[doc = "Getter for the `appVersion` field of this object."]
222     #[doc = ""]
223     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion)"]
224     #[doc = ""]
225     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
app_version(this: &Navigator) -> Result<String, JsValue>226     pub fn app_version(this: &Navigator) -> Result<String, JsValue>;
227     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = platform)]
228     #[doc = "Getter for the `platform` field of this object."]
229     #[doc = ""]
230     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform)"]
231     #[doc = ""]
232     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
platform(this: &Navigator) -> Result<String, JsValue>233     pub fn platform(this: &Navigator) -> Result<String, JsValue>;
234     # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = userAgent)]
235     #[doc = "Getter for the `userAgent` field of this object."]
236     #[doc = ""]
237     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent)"]
238     #[doc = ""]
239     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
user_agent(this: &Navigator) -> Result<String, JsValue>240     pub fn user_agent(this: &Navigator) -> Result<String, JsValue>;
241     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = product)]
242     #[doc = "Getter for the `product` field of this object."]
243     #[doc = ""]
244     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/product)"]
245     #[doc = ""]
246     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
product(this: &Navigator) -> String247     pub fn product(this: &Navigator) -> String;
248     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = language)]
249     #[doc = "Getter for the `language` field of this object."]
250     #[doc = ""]
251     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"]
252     #[doc = ""]
253     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
language(this: &Navigator) -> Option<String>254     pub fn language(this: &Navigator) -> Option<String>;
255     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = languages)]
256     #[doc = "Getter for the `languages` field of this object."]
257     #[doc = ""]
258     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)"]
259     #[doc = ""]
260     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
languages(this: &Navigator) -> ::js_sys::Array261     pub fn languages(this: &Navigator) -> ::js_sys::Array;
262     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = onLine)]
263     #[doc = "Getter for the `onLine` field of this object."]
264     #[doc = ""]
265     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine)"]
266     #[doc = ""]
267     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
on_line(this: &Navigator) -> bool268     pub fn on_line(this: &Navigator) -> bool;
269     #[cfg(feature = "StorageManager")]
270     # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = storage)]
271     #[doc = "Getter for the `storage` field of this object."]
272     #[doc = ""]
273     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/storage)"]
274     #[doc = ""]
275     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `StorageManager`*"]
storage(this: &Navigator) -> StorageManager276     pub fn storage(this: &Navigator) -> StorageManager;
277     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = getGamepads)]
278     #[doc = "The `getGamepads()` method."]
279     #[doc = ""]
280     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads)"]
281     #[doc = ""]
282     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
get_gamepads(this: &Navigator) -> Result<::js_sys::Array, JsValue>283     pub fn get_gamepads(this: &Navigator) -> Result<::js_sys::Array, JsValue>;
284     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = getVRDisplays)]
285     #[doc = "The `getVRDisplays()` method."]
286     #[doc = ""]
287     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getVRDisplays)"]
288     #[doc = ""]
289     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
get_vr_displays(this: &Navigator) -> Result<::js_sys::Promise, JsValue>290     pub fn get_vr_displays(this: &Navigator) -> Result<::js_sys::Promise, JsValue>;
291     #[cfg(feature = "GamepadServiceTest")]
292     # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestGamepadServiceTest)]
293     #[doc = "The `requestGamepadServiceTest()` method."]
294     #[doc = ""]
295     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestGamepadServiceTest)"]
296     #[doc = ""]
297     #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`, `Navigator`*"]
request_gamepad_service_test(this: &Navigator) -> GamepadServiceTest298     pub fn request_gamepad_service_test(this: &Navigator) -> GamepadServiceTest;
299     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess)]
300     #[doc = "The `requestMIDIAccess()` method."]
301     #[doc = ""]
302     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"]
303     #[doc = ""]
304     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
request_midi_access(this: &Navigator) -> Result<::js_sys::Promise, JsValue>305     pub fn request_midi_access(this: &Navigator) -> Result<::js_sys::Promise, JsValue>;
306     #[cfg(feature = "MidiOptions")]
307     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess)]
308     #[doc = "The `requestMIDIAccess()` method."]
309     #[doc = ""]
310     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"]
311     #[doc = ""]
312     #[doc = "*This API requires the following crate features to be activated: `MidiOptions`, `Navigator`*"]
request_midi_access_with_options( this: &Navigator, options: &MidiOptions, ) -> Result<::js_sys::Promise, JsValue>313     pub fn request_midi_access_with_options(
314         this: &Navigator,
315         options: &MidiOptions,
316     ) -> Result<::js_sys::Promise, JsValue>;
317     # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestMediaKeySystemAccess)]
318     #[doc = "The `requestMediaKeySystemAccess()` method."]
319     #[doc = ""]
320     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess)"]
321     #[doc = ""]
322     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
request_media_key_system_access( this: &Navigator, key_system: &str, supported_configurations: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise323     pub fn request_media_key_system_access(
324         this: &Navigator,
325         key_system: &str,
326         supported_configurations: &::wasm_bindgen::JsValue,
327     ) -> ::js_sys::Promise;
328     #[cfg(feature = "VrServiceTest")]
329     # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = requestVRServiceTest)]
330     #[doc = "The `requestVRServiceTest()` method."]
331     #[doc = ""]
332     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestVRServiceTest)"]
333     #[doc = ""]
334     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `VrServiceTest`*"]
request_vr_service_test(this: &Navigator) -> VrServiceTest335     pub fn request_vr_service_test(this: &Navigator) -> VrServiceTest;
336     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
337     #[doc = "The `sendBeacon()` method."]
338     #[doc = ""]
339     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
340     #[doc = ""]
341     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
send_beacon(this: &Navigator, url: &str) -> Result<bool, JsValue>342     pub fn send_beacon(this: &Navigator, url: &str) -> Result<bool, JsValue>;
343     #[cfg(feature = "Blob")]
344     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
345     #[doc = "The `sendBeacon()` method."]
346     #[doc = ""]
347     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
348     #[doc = ""]
349     #[doc = "*This API requires the following crate features to be activated: `Blob`, `Navigator`*"]
send_beacon_with_opt_blob( this: &Navigator, url: &str, data: Option<&Blob>, ) -> Result<bool, JsValue>350     pub fn send_beacon_with_opt_blob(
351         this: &Navigator,
352         url: &str,
353         data: Option<&Blob>,
354     ) -> Result<bool, JsValue>;
355     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
356     #[doc = "The `sendBeacon()` method."]
357     #[doc = ""]
358     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
359     #[doc = ""]
360     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
send_beacon_with_opt_buffer_source( this: &Navigator, url: &str, data: Option<&::js_sys::Object>, ) -> Result<bool, JsValue>361     pub fn send_beacon_with_opt_buffer_source(
362         this: &Navigator,
363         url: &str,
364         data: Option<&::js_sys::Object>,
365     ) -> Result<bool, JsValue>;
366     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
367     #[doc = "The `sendBeacon()` method."]
368     #[doc = ""]
369     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
370     #[doc = ""]
371     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
send_beacon_with_opt_u8_array( this: &Navigator, url: &str, data: Option<&mut [u8]>, ) -> Result<bool, JsValue>372     pub fn send_beacon_with_opt_u8_array(
373         this: &Navigator,
374         url: &str,
375         data: Option<&mut [u8]>,
376     ) -> Result<bool, JsValue>;
377     #[cfg(feature = "FormData")]
378     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
379     #[doc = "The `sendBeacon()` method."]
380     #[doc = ""]
381     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
382     #[doc = ""]
383     #[doc = "*This API requires the following crate features to be activated: `FormData`, `Navigator`*"]
send_beacon_with_opt_form_data( this: &Navigator, url: &str, data: Option<&FormData>, ) -> Result<bool, JsValue>384     pub fn send_beacon_with_opt_form_data(
385         this: &Navigator,
386         url: &str,
387         data: Option<&FormData>,
388     ) -> Result<bool, JsValue>;
389     #[cfg(feature = "UrlSearchParams")]
390     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
391     #[doc = "The `sendBeacon()` method."]
392     #[doc = ""]
393     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
394     #[doc = ""]
395     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `UrlSearchParams`*"]
send_beacon_with_opt_url_search_params( this: &Navigator, url: &str, data: Option<&UrlSearchParams>, ) -> Result<bool, JsValue>396     pub fn send_beacon_with_opt_url_search_params(
397         this: &Navigator,
398         url: &str,
399         data: Option<&UrlSearchParams>,
400     ) -> Result<bool, JsValue>;
401     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
402     #[doc = "The `sendBeacon()` method."]
403     #[doc = ""]
404     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
405     #[doc = ""]
406     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
send_beacon_with_opt_str( this: &Navigator, url: &str, data: Option<&str>, ) -> Result<bool, JsValue>407     pub fn send_beacon_with_opt_str(
408         this: &Navigator,
409         url: &str,
410         data: Option<&str>,
411     ) -> Result<bool, JsValue>;
412     #[cfg(feature = "ReadableStream")]
413     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = sendBeacon)]
414     #[doc = "The `sendBeacon()` method."]
415     #[doc = ""]
416     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"]
417     #[doc = ""]
418     #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ReadableStream`*"]
send_beacon_with_opt_readable_stream( this: &Navigator, url: &str, data: Option<&ReadableStream>, ) -> Result<bool, JsValue>419     pub fn send_beacon_with_opt_readable_stream(
420         this: &Navigator,
421         url: &str,
422         data: Option<&ReadableStream>,
423     ) -> Result<bool, JsValue>;
424     # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = vibrate)]
425     #[doc = "The `vibrate()` method."]
426     #[doc = ""]
427     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"]
428     #[doc = ""]
429     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
vibrate_with_duration(this: &Navigator, duration: u32) -> bool430     pub fn vibrate_with_duration(this: &Navigator, duration: u32) -> bool;
431     # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = vibrate)]
432     #[doc = "The `vibrate()` method."]
433     #[doc = ""]
434     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"]
435     #[doc = ""]
436     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
vibrate_with_pattern(this: &Navigator, pattern: &::wasm_bindgen::JsValue) -> bool437     pub fn vibrate_with_pattern(this: &Navigator, pattern: &::wasm_bindgen::JsValue) -> bool;
438     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = registerContentHandler)]
439     #[doc = "The `registerContentHandler()` method."]
440     #[doc = ""]
441     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerContentHandler)"]
442     #[doc = ""]
443     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
register_content_handler( this: &Navigator, mime_type: &str, url: &str, title: &str, ) -> Result<(), JsValue>444     pub fn register_content_handler(
445         this: &Navigator,
446         mime_type: &str,
447         url: &str,
448         title: &str,
449     ) -> Result<(), JsValue>;
450     # [wasm_bindgen (catch , method , structural , js_class = "Navigator" , js_name = registerProtocolHandler)]
451     #[doc = "The `registerProtocolHandler()` method."]
452     #[doc = ""]
453     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)"]
454     #[doc = ""]
455     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
register_protocol_handler( this: &Navigator, scheme: &str, url: &str, title: &str, ) -> Result<(), JsValue>456     pub fn register_protocol_handler(
457         this: &Navigator,
458         scheme: &str,
459         url: &str,
460         title: &str,
461     ) -> Result<(), JsValue>;
462     # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = taintEnabled)]
463     #[doc = "The `taintEnabled()` method."]
464     #[doc = ""]
465     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/taintEnabled)"]
466     #[doc = ""]
467     #[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
taint_enabled(this: &Navigator) -> bool468     pub fn taint_enabled(this: &Navigator) -> bool;
469 }
470