1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaList , typescript_type = "MediaList")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `MediaList` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
13     pub type MediaList;
14     # [wasm_bindgen (structural , method , getter , js_class = "MediaList" , js_name = mediaText)]
15     #[doc = "Getter for the `mediaText` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/mediaText)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
media_text(this: &MediaList) -> String20     pub fn media_text(this: &MediaList) -> String;
21     # [wasm_bindgen (structural , method , setter , js_class = "MediaList" , js_name = mediaText)]
22     #[doc = "Setter for the `mediaText` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/mediaText)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
set_media_text(this: &MediaList, value: &str)27     pub fn set_media_text(this: &MediaList, value: &str);
28     # [wasm_bindgen (structural , method , getter , js_class = "MediaList" , js_name = length)]
29     #[doc = "Getter for the `length` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/length)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
length(this: &MediaList) -> u3234     pub fn length(this: &MediaList) -> u32;
35     # [wasm_bindgen (catch , method , structural , js_class = "MediaList" , js_name = appendMedium)]
36     #[doc = "The `appendMedium()` method."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/appendMedium)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
append_medium(this: &MediaList, new_medium: &str) -> Result<(), JsValue>41     pub fn append_medium(this: &MediaList, new_medium: &str) -> Result<(), JsValue>;
42     # [wasm_bindgen (catch , method , structural , js_class = "MediaList" , js_name = deleteMedium)]
43     #[doc = "The `deleteMedium()` method."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/deleteMedium)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
delete_medium(this: &MediaList, old_medium: &str) -> Result<(), JsValue>48     pub fn delete_medium(this: &MediaList, old_medium: &str) -> Result<(), JsValue>;
49     # [wasm_bindgen (method , structural , js_class = "MediaList" , js_name = item)]
50     #[doc = "The `item()` method."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/item)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
item(this: &MediaList, index: u32) -> Option<String>55     pub fn item(this: &MediaList, index: u32) -> Option<String>;
56     #[wasm_bindgen(method, structural, js_class = "MediaList", indexing_getter)]
57     #[doc = "Indexing getter."]
58     #[doc = ""]
59     #[doc = ""]
60     #[doc = ""]
61     #[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
get(this: &MediaList, index: u32) -> Option<String>62     pub fn get(this: &MediaList, index: u32) -> Option<String>;
63 }
64