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