web_sys/features/
gen_PresentationAvailability.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "EventTarget",
9 extends = "::js_sys::Object",
10 js_name = "PresentationAvailability",
11 typescript_type = "PresentationAvailability"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `PresentationAvailability` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"]
19 pub type PresentationAvailability;
20 #[wasm_bindgen(
21 method,
22 getter,
23 js_class = "PresentationAvailability",
24 js_name = "value"
25 )]
26 #[doc = "Getter for the `value` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/value)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"]
31 pub fn value(this: &PresentationAvailability) -> bool;
32 #[wasm_bindgen(
33 method,
34 getter,
35 js_class = "PresentationAvailability",
36 js_name = "onchange"
37 )]
38 #[doc = "Getter for the `onchange` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"]
43 pub fn onchange(this: &PresentationAvailability) -> Option<::js_sys::Function>;
44 #[wasm_bindgen(
45 method,
46 setter,
47 js_class = "PresentationAvailability",
48 js_name = "onchange"
49 )]
50 #[doc = "Setter for the `onchange` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"]
55 pub fn set_onchange(this: &PresentationAvailability, value: Option<&::js_sys::Function>);
56}