1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
#![allow(unused_imports)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationConnection , typescript_type = "PresentationConnection")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PresentationConnection` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub type PresentationConnection; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn id(this: &PresentationConnection) -> String; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn url(this: &PresentationConnection) -> String; #[cfg(feature = "PresentationConnectionState")] # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = state)] #[doc = "Getter for the `state` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionState`*"] pub fn state(this: &PresentationConnection) -> PresentationConnectionState; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onconnect)] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onconnect(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onconnect)] #[doc = "Setter for the `onconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onconnect(this: &PresentationConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onclose)] #[doc = "Getter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onclose(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onclose)] #[doc = "Setter for the `onclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onclose(this: &PresentationConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onterminate)] #[doc = "Getter for the `onterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onterminate(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onterminate)] #[doc = "Setter for the `onterminate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onterminate(this: &PresentationConnection, value: Option<&::js_sys::Function>); #[cfg(feature = "PresentationConnectionBinaryType")] # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = binaryType)] #[doc = "Getter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] pub fn binary_type(this: &PresentationConnection) -> PresentationConnectionBinaryType; #[cfg(feature = "PresentationConnectionBinaryType")] # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = binaryType)] #[doc = "Setter for the `binaryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] pub fn set_binary_type(this: &PresentationConnection, value: PresentationConnectionBinaryType); # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn onmessage(this: &PresentationConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "PresentationConnection" , js_name = onmessage)] #[doc = "Setter for the `onmessage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn set_onmessage(this: &PresentationConnection, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn close(this: &PresentationConnection) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_str(this: &PresentationConnection, data: &str) -> Result<(), JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `PresentationConnection`*"] pub fn send_with_blob(this: &PresentationConnection, data: &Blob) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_array_buffer( this: &PresentationConnection, data: &::js_sys::ArrayBuffer, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_array_buffer_view( this: &PresentationConnection, data: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = send)] #[doc = "The `send()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn send_with_u8_array(this: &PresentationConnection, data: &[u8]) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "PresentationConnection" , js_name = terminate)] #[doc = "The `terminate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/terminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] pub fn terminate(this: &PresentationConnection) -> Result<(), JsValue>; }