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