web_sys/features/
gen_RtcdtmfSender.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "EventTarget",
9 extends = "::js_sys::Object",
10 js_name = "RTCDTMFSender",
11 typescript_type = "RTCDTMFSender"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `RtcdtmfSender` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
19 pub type RtcdtmfSender;
20 #[wasm_bindgen(method, getter, js_class = "RTCDTMFSender", js_name = "ontonechange")]
21 #[doc = "Getter for the `ontonechange` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
26 pub fn ontonechange(this: &RtcdtmfSender) -> Option<::js_sys::Function>;
27 #[wasm_bindgen(method, setter, js_class = "RTCDTMFSender", js_name = "ontonechange")]
28 #[doc = "Setter for the `ontonechange` field of this object."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
33 pub fn set_ontonechange(this: &RtcdtmfSender, value: Option<&::js_sys::Function>);
34 #[wasm_bindgen(method, getter, js_class = "RTCDTMFSender", js_name = "toneBuffer")]
35 #[doc = "Getter for the `toneBuffer` field of this object."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/toneBuffer)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
40 pub fn tone_buffer(this: &RtcdtmfSender) -> ::alloc::string::String;
41 #[wasm_bindgen(method, js_class = "RTCDTMFSender", js_name = "insertDTMF")]
42 #[doc = "The `insertDTMF()` method."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
47 pub fn insert_dtmf(this: &RtcdtmfSender, tones: &str);
48 #[wasm_bindgen(method, js_class = "RTCDTMFSender", js_name = "insertDTMF")]
49 #[doc = "The `insertDTMF()` method."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
54 pub fn insert_dtmf_with_duration(this: &RtcdtmfSender, tones: &str, duration: u32);
55 #[wasm_bindgen(method, js_class = "RTCDTMFSender", js_name = "insertDTMF")]
56 #[doc = "The `insertDTMF()` method."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
61 pub fn insert_dtmf_with_duration_and_inter_tone_gap(
62 this: &RtcdtmfSender,
63 tones: &str,
64 duration: u32,
65 inter_tone_gap: u32,
66 );
67}