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