web_sys/features/
gen_AudioTrackList.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioTrackList , typescript_type = "AudioTrackList")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `AudioTrackList` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
14    pub type AudioTrackList;
15    # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = length)]
16    #[doc = "Getter for the `length` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/length)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
21    pub fn length(this: &AudioTrackList) -> u32;
22    # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onchange)]
23    #[doc = "Getter for the `onchange` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
28    pub fn onchange(this: &AudioTrackList) -> Option<::js_sys::Function>;
29    # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onchange)]
30    #[doc = "Setter for the `onchange` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
35    pub fn set_onchange(this: &AudioTrackList, value: Option<&::js_sys::Function>);
36    # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onaddtrack)]
37    #[doc = "Getter for the `onaddtrack` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
42    pub fn onaddtrack(this: &AudioTrackList) -> Option<::js_sys::Function>;
43    # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onaddtrack)]
44    #[doc = "Setter for the `onaddtrack` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
49    pub fn set_onaddtrack(this: &AudioTrackList, value: Option<&::js_sys::Function>);
50    # [wasm_bindgen (structural , method , getter , js_class = "AudioTrackList" , js_name = onremovetrack)]
51    #[doc = "Getter for the `onremovetrack` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
56    pub fn onremovetrack(this: &AudioTrackList) -> Option<::js_sys::Function>;
57    # [wasm_bindgen (structural , method , setter , js_class = "AudioTrackList" , js_name = onremovetrack)]
58    #[doc = "Setter for the `onremovetrack` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"]
63    pub fn set_onremovetrack(this: &AudioTrackList, value: Option<&::js_sys::Function>);
64    #[cfg(feature = "AudioTrack")]
65    # [wasm_bindgen (method , structural , js_class = "AudioTrackList" , js_name = getTrackById)]
66    #[doc = "The `getTrackById()` method."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/getTrackById)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"]
71    pub fn get_track_by_id(this: &AudioTrackList, id: &str) -> Option<AudioTrack>;
72    #[cfg(feature = "AudioTrack")]
73    #[wasm_bindgen(method, structural, js_class = "AudioTrackList", indexing_getter)]
74    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
75    #[doc = ""]
76    #[doc = ""]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"]
79    pub fn get(this: &AudioTrackList, index: u32) -> Option<AudioTrack>;
80}