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
|
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = BatteryManager , typescript_type = "BatteryManager")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `BatteryManager` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub type BatteryManager;
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = charging)]
#[doc = "Getter for the `charging` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/charging)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn charging(this: &BatteryManager) -> bool;
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = chargingTime)]
#[doc = "Getter for the `chargingTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/chargingTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn charging_time(this: &BatteryManager) -> f64;
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = dischargingTime)]
#[doc = "Getter for the `dischargingTime` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/dischargingTime)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn discharging_time(this: &BatteryManager) -> f64;
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = level)]
#[doc = "Getter for the `level` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/level)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn level(this: &BatteryManager) -> f64;
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onchargingchange)]
#[doc = "Getter for the `onchargingchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn onchargingchange(this: &BatteryManager) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onchargingchange)]
#[doc = "Setter for the `onchargingchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn set_onchargingchange(this: &BatteryManager, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onchargingtimechange)]
#[doc = "Getter for the `onchargingtimechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn onchargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onchargingtimechange)]
#[doc = "Setter for the `onchargingtimechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn set_onchargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = ondischargingtimechange)]
#[doc = "Getter for the `ondischargingtimechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn ondischargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = ondischargingtimechange)]
#[doc = "Setter for the `ondischargingtimechange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn set_ondischargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "BatteryManager" , js_name = onlevelchange)]
#[doc = "Getter for the `onlevelchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn onlevelchange(this: &BatteryManager) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "BatteryManager" , js_name = onlevelchange)]
#[doc = "Setter for the `onlevelchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"]
pub fn set_onlevelchange(this: &BatteryManager, value: Option<&::js_sys::Function>);
}
|