Skip to main content

web_sys/features/
gen_MediaDeviceInfo.rs

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