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