maxcountryman_web_sys/features/
gen_PresentationRequest.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationRequest , typescript_type = "PresentationRequest")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `PresentationRequest` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
13    pub type PresentationRequest;
14    # [wasm_bindgen (structural , method , getter , js_class = "PresentationRequest" , js_name = onconnectionavailable)]
15    #[doc = "Getter for the `onconnectionavailable` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
20    pub fn onconnectionavailable(this: &PresentationRequest) -> Option<::js_sys::Function>;
21    # [wasm_bindgen (structural , method , setter , js_class = "PresentationRequest" , js_name = onconnectionavailable)]
22    #[doc = "Setter for the `onconnectionavailable` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
27    pub fn set_onconnectionavailable(
28        this: &PresentationRequest,
29        value: Option<&::js_sys::Function>,
30    );
31    #[wasm_bindgen(catch, constructor, js_class = "PresentationRequest")]
32    #[doc = "The `new PresentationRequest(..)` constructor, creating a new instance of `PresentationRequest`."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/PresentationRequest)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
37    pub fn new_with_url(url: &str) -> Result<PresentationRequest, JsValue>;
38    #[wasm_bindgen(catch, constructor, js_class = "PresentationRequest")]
39    #[doc = "The `new PresentationRequest(..)` constructor, creating a new instance of `PresentationRequest`."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/PresentationRequest)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
44    pub fn new_with_urls(urls: &::wasm_bindgen::JsValue) -> Result<PresentationRequest, JsValue>;
45    # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = getAvailability)]
46    #[doc = "The `getAvailability()` method."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/getAvailability)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
51    pub fn get_availability(this: &PresentationRequest) -> Result<::js_sys::Promise, JsValue>;
52    # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = reconnect)]
53    #[doc = "The `reconnect()` method."]
54    #[doc = ""]
55    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/reconnect)"]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
58    pub fn reconnect(
59        this: &PresentationRequest,
60        presentation_id: &str,
61    ) -> Result<::js_sys::Promise, JsValue>;
62    # [wasm_bindgen (catch , method , structural , js_class = "PresentationRequest" , js_name = start)]
63    #[doc = "The `start()` method."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/start)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"]
68    pub fn start(this: &PresentationRequest) -> Result<::js_sys::Promise, JsValue>;
69}