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