1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PresentationConnectionCloseEvent , typescript_type = "PresentationConnectionCloseEvent")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `PresentationConnectionCloseEvent` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"]
13     pub type PresentationConnectionCloseEvent;
14     #[cfg(feature = "PresentationConnectionClosedReason")]
15     # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = reason)]
16     #[doc = "Getter for the `reason` field of this object."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/reason)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`, `PresentationConnectionClosedReason`*"]
reason(this: &PresentationConnectionCloseEvent) -> PresentationConnectionClosedReason21     pub fn reason(this: &PresentationConnectionCloseEvent) -> PresentationConnectionClosedReason;
22     # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = message)]
23     #[doc = "Getter for the `message` field of this object."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/message)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"]
message(this: &PresentationConnectionCloseEvent) -> String28     pub fn message(this: &PresentationConnectionCloseEvent) -> String;
29     #[cfg(feature = "PresentationConnectionCloseEventInit")]
30     #[wasm_bindgen(catch, constructor, js_class = "PresentationConnectionCloseEvent")]
31     #[doc = "The `new PresentationConnectionCloseEvent(..)` constructor, creating a new instance of `PresentationConnectionCloseEvent`."]
32     #[doc = ""]
33     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/PresentationConnectionCloseEvent)"]
34     #[doc = ""]
35     #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`, `PresentationConnectionCloseEventInit`*"]
new( type_: &str, event_init_dict: &PresentationConnectionCloseEventInit, ) -> Result<PresentationConnectionCloseEvent, JsValue>36     pub fn new(
37         type_: &str,
38         event_init_dict: &PresentationConnectionCloseEventInit,
39     ) -> Result<PresentationConnectionCloseEvent, JsValue>;
40 }
41