web_sys/features/
gen_RtcdtmfSender.rs

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