maxcountryman_web_sys/features/
gen_MediaEncryptedEvent.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = MediaEncryptedEvent , typescript_type = "MediaEncryptedEvent")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `MediaEncryptedEvent` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"]
13    pub type MediaEncryptedEvent;
14    # [wasm_bindgen (structural , method , getter , js_class = "MediaEncryptedEvent" , js_name = initDataType)]
15    #[doc = "Getter for the `initDataType` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initDataType)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"]
20    pub fn init_data_type(this: &MediaEncryptedEvent) -> String;
21    # [wasm_bindgen (structural , catch , method , getter , js_class = "MediaEncryptedEvent" , js_name = initData)]
22    #[doc = "Getter for the `initData` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initData)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"]
27    pub fn init_data(this: &MediaEncryptedEvent) -> Result<Option<::js_sys::ArrayBuffer>, JsValue>;
28    #[wasm_bindgen(catch, constructor, js_class = "MediaEncryptedEvent")]
29    #[doc = "The `new MediaEncryptedEvent(..)` constructor, creating a new instance of `MediaEncryptedEvent`."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/MediaEncryptedEvent)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"]
34    pub fn new(type_: &str) -> Result<MediaEncryptedEvent, JsValue>;
35    #[cfg(feature = "MediaKeyNeededEventInit")]
36    #[wasm_bindgen(catch, constructor, js_class = "MediaEncryptedEvent")]
37    #[doc = "The `new MediaEncryptedEvent(..)` constructor, creating a new instance of `MediaEncryptedEvent`."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/MediaEncryptedEvent)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`, `MediaKeyNeededEventInit`*"]
42    pub fn new_with_event_init_dict(
43        type_: &str,
44        event_init_dict: &MediaKeyNeededEventInit,
45    ) -> Result<MediaEncryptedEvent, JsValue>;
46}