web_sys/features/
gen_NavigatorUaData.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 #[wasm_bindgen(
9 extends = "::js_sys::Object",
10 js_name = "NavigatorUAData",
11 typescript_type = "NavigatorUAData"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `NavigatorUaData` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type NavigatorUaData;
23 #[cfg(web_sys_unstable_apis)]
24 #[cfg(feature = "NavigatorUaBrandVersion")]
25 #[wasm_bindgen(method, getter, js_class = "NavigatorUAData", js_name = "brands")]
26 #[doc = "Getter for the `brands` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/brands)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `NavigatorUaBrandVersion`, `NavigatorUaData`*"]
31 #[doc = ""]
32 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34 pub fn brands(this: &NavigatorUaData) -> ::js_sys::Array<NavigatorUaBrandVersion>;
35 #[cfg(web_sys_unstable_apis)]
36 #[wasm_bindgen(method, getter, js_class = "NavigatorUAData", js_name = "mobile")]
37 #[doc = "Getter for the `mobile` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/mobile)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"]
42 #[doc = ""]
43 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45 pub fn mobile(this: &NavigatorUaData) -> bool;
46 #[cfg(web_sys_unstable_apis)]
47 #[wasm_bindgen(method, getter, js_class = "NavigatorUAData", js_name = "platform")]
48 #[doc = "Getter for the `platform` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/platform)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"]
53 #[doc = ""]
54 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
55 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
56 pub fn platform(this: &NavigatorUaData) -> ::alloc::string::String;
57 #[cfg(web_sys_unstable_apis)]
58 #[cfg(feature = "UaDataValues")]
59 #[wasm_bindgen(method, js_class = "NavigatorUAData", js_name = "getHighEntropyValues")]
60 #[doc = "The `getHighEntropyValues()` method."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/getHighEntropyValues)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`, `UaDataValues`*"]
65 #[doc = ""]
66 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
67 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
68 pub fn get_high_entropy_values(
69 this: &NavigatorUaData,
70 hints: &[::js_sys::JsString],
71 ) -> ::js_sys::Promise<UaDataValues>;
72 #[cfg(web_sys_unstable_apis)]
73 #[cfg(feature = "UaLowEntropyJson")]
74 #[wasm_bindgen(method, js_class = "NavigatorUAData", js_name = "toJSON")]
75 #[doc = "The `toJSON()` method."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/toJSON)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`, `UaLowEntropyJson`*"]
80 #[doc = ""]
81 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
82 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
83 pub fn to_json(this: &NavigatorUaData) -> UaLowEntropyJson;
84}