]>
git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_RtcdtmfSender.rs
1 #![allow(unused_imports)]
3 use wasm_bindgen
::prelude
::*;
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."]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender)"]
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."]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"]
19 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
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."]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"]
26 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
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."]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/toneBuffer)"]
33 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
34 pub fn tone_buffer(this
: &RtcdtmfSender
) -> String
;
35 # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)]
36 #[doc = "The `insertDTMF()` method."]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"]
40 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
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."]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"]
47 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
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."]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"]
54 #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"]
55 pub fn insert_dtmf_with_duration_and_inter_tone_gap(