web_sys/features/
gen_RtcdtmfToneChangeEvent.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "Event",
9 extends = "::js_sys::Object",
10 js_name = "RTCDTMFToneChangeEvent",
11 typescript_type = "RTCDTMFToneChangeEvent"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `RtcdtmfToneChangeEvent` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"]
19 pub type RtcdtmfToneChangeEvent;
20 #[wasm_bindgen(method, getter, js_class = "RTCDTMFToneChangeEvent", js_name = "tone")]
21 #[doc = "Getter for the `tone` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/tone)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"]
26 pub fn tone(this: &RtcdtmfToneChangeEvent) -> ::alloc::string::String;
27 #[wasm_bindgen(catch, constructor, js_class = "RTCDTMFToneChangeEvent")]
28 #[doc = "The `new RtcdtmfToneChangeEvent(..)` constructor, creating a new instance of `RtcdtmfToneChangeEvent`."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/RTCDTMFToneChangeEvent)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"]
33 pub fn new(type_: &str) -> Result<RtcdtmfToneChangeEvent, JsValue>;
34 #[cfg(feature = "RtcdtmfToneChangeEventInit")]
35 #[wasm_bindgen(catch, constructor, js_class = "RTCDTMFToneChangeEvent")]
36 #[doc = "The `new RtcdtmfToneChangeEvent(..)` constructor, creating a new instance of `RtcdtmfToneChangeEvent`."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/RTCDTMFToneChangeEvent)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`, `RtcdtmfToneChangeEventInit`*"]
41 pub fn new_with_event_init_dict(
42 type_: &str,
43 event_init_dict: &RtcdtmfToneChangeEventInit,
44 ) -> Result<RtcdtmfToneChangeEvent, JsValue>;
45}