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