maxcountryman_web_sys/features/
gen_NetworkInformation.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = NetworkInformation , typescript_type = "NetworkInformation")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `NetworkInformation` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"]
13    pub type NetworkInformation;
14    #[cfg(feature = "ConnectionType")]
15    # [wasm_bindgen (structural , method , getter , js_class = "NetworkInformation" , js_name = type)]
16    #[doc = "Getter for the `type` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/type)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `ConnectionType`, `NetworkInformation`*"]
21    pub fn type_(this: &NetworkInformation) -> ConnectionType;
22    # [wasm_bindgen (structural , method , getter , js_class = "NetworkInformation" , js_name = ontypechange)]
23    #[doc = "Getter for the `ontypechange` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"]
28    pub fn ontypechange(this: &NetworkInformation) -> Option<::js_sys::Function>;
29    # [wasm_bindgen (structural , method , setter , js_class = "NetworkInformation" , js_name = ontypechange)]
30    #[doc = "Setter for the `ontypechange` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"]
35    pub fn set_ontypechange(this: &NetworkInformation, value: Option<&::js_sys::Function>);
36}