web_sys/features/
gen_MediaCapabilitiesInfo.rs1#![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 = "MediaCapabilitiesInfo",
10 typescript_type = "MediaCapabilitiesInfo"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `MediaCapabilitiesInfo` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"]
18 pub type MediaCapabilitiesInfo;
19 #[wasm_bindgen(
20 method,
21 getter,
22 js_class = "MediaCapabilitiesInfo",
23 js_name = "supported"
24 )]
25 #[doc = "Getter for the `supported` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/supported)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"]
30 pub fn supported(this: &MediaCapabilitiesInfo) -> bool;
31 #[wasm_bindgen(method, getter, js_class = "MediaCapabilitiesInfo", js_name = "smooth")]
32 #[doc = "Getter for the `smooth` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/smooth)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"]
37 pub fn smooth(this: &MediaCapabilitiesInfo) -> bool;
38 #[wasm_bindgen(
39 method,
40 getter,
41 js_class = "MediaCapabilitiesInfo",
42 js_name = "powerEfficient"
43 )]
44 #[doc = "Getter for the `powerEfficient` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/powerEfficient)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"]
49 pub fn power_efficient(this: &MediaCapabilitiesInfo) -> bool;
50}