summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_PushManager.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_PushManager.rs')
-rw-r--r--vendor/web-sys/src/features/gen_PushManager.rs57
1 files changed, 57 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_PushManager.rs b/vendor/web-sys/src/features/gen_PushManager.rs
new file mode 100644
index 000000000..b272c5067
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_PushManager.rs
@@ -0,0 +1,57 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PushManager , typescript_type = "PushManager")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `PushManager` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PushManager`*"]
+ pub type PushManager;
+ # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = getSubscription)]
+ #[doc = "The `getSubscription()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/getSubscription)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PushManager`*"]
+ pub fn get_subscription(this: &PushManager) -> Result<::js_sys::Promise, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = permissionState)]
+ #[doc = "The `permissionState()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PushManager`*"]
+ pub fn permission_state(this: &PushManager) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "PushSubscriptionOptionsInit")]
+ # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = permissionState)]
+ #[doc = "The `permissionState()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PushManager`, `PushSubscriptionOptionsInit`*"]
+ pub fn permission_state_with_options(
+ this: &PushManager,
+ options: &PushSubscriptionOptionsInit,
+ ) -> Result<::js_sys::Promise, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = subscribe)]
+ #[doc = "The `subscribe()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PushManager`*"]
+ pub fn subscribe(this: &PushManager) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "PushSubscriptionOptionsInit")]
+ # [wasm_bindgen (catch , method , structural , js_class = "PushManager" , js_name = subscribe)]
+ #[doc = "The `subscribe()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PushManager`, `PushSubscriptionOptionsInit`*"]
+ pub fn subscribe_with_options(
+ this: &PushManager,
+ options: &PushSubscriptionOptionsInit,
+ ) -> Result<::js_sys::Promise, JsValue>;
+}