Skip to main content

web_sys/features/
gen_PresentationConnectionAvailableEvent.rs

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