• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# BatteryInfo
2
3
4## 概述
5
6电池相关信息。
7
8**Since:**
93.1
10**相关模块:**
11
12[Battery](battery.md)
13
14
15## 汇总
16
17
18### Public 属性
19
20  | 名称 | 描述 |
21| -------- | -------- |
22| [capacity](#capacity) | int<br/>表示电池的电量百分比。&nbsp; |
23| [voltage](#voltage) | int<br/>表示电池的电压。&nbsp; |
24| [temperature](#temperature) | int<br/>表示电池的温度&nbsp; |
25| [healthState](#healthstate) | int<br/>表示电池的健康状态。&nbsp; |
26| [pluggedType](#pluggedtype) | int<br/>表示电池的充电设备类型。&nbsp; |
27| [pluggedMaxCurrent](#pluggedmaxcurrent) | int<br/>表示电池的最大充电电流。&nbsp; |
28| [pluggedMaxVoltage](#pluggedmaxvoltage) | int<br/>表示电池的最大充电电压。&nbsp; |
29| [chargeState](#chargestate) | int<br/>表示电池的充电状态。&nbsp; |
30| [chargeCounter](#chargecounter) | int<br/>表示电池的充电次数。&nbsp; |
31| [totalEnergy](#totalenergy) | int<br/>表示电池的总容量。&nbsp; |
32| [curAverage](#curaverage) | int<br/>表示电池的平均电流。&nbsp; |
33| [curNow](#curnow) | int<br/>表示电池的实时电流。&nbsp; |
34| [remainEnergy](#remainenergy) | int<br/>表示电池的剩余容量。&nbsp; |
35| [present](#present) | byte<br/>表示是否支持电池或者电池是否在位。&nbsp; |
36| [technology](#technology) | String<br/>表示电池的技术型号。&nbsp; |
37
38
39## 类成员变量说明
40
41
42### capacity
43
44
45```
46int BatteryInfo::capacity
47```
48**描述:**
49表示电池的电量百分比。
50
51
52### chargeCounter
53
54
55```
56int BatteryInfo::chargeCounter
57```
58**描述:**
59表示电池的充电次数。
60
61
62### chargeState
63
64
65```
66int BatteryInfo::chargeState
67```
68**描述:**
69表示电池的充电状态。
70
71
72### curAverage
73
74
75```
76int BatteryInfo::curAverage
77```
78**描述:**
79表示电池的平均电流。
80
81
82### curNow
83
84
85```
86int BatteryInfo::curNow
87```
88**描述:**
89表示电池的实时电流。
90
91
92### healthState
93
94
95```
96int BatteryInfo::healthState
97```
98**描述:**
99表示电池的健康状态。
100
101
102### pluggedMaxCurrent
103
104
105```
106int BatteryInfo::pluggedMaxCurrent
107```
108**描述:**
109表示电池的最大充电电流。
110
111
112### pluggedMaxVoltage
113
114
115```
116int BatteryInfo::pluggedMaxVoltage
117```
118**描述:**
119表示电池的最大充电电压。
120
121
122### pluggedType
123
124
125```
126int BatteryInfo::pluggedType
127```
128**描述:**
129表示电池的充电设备类型。
130
131
132### present
133
134
135```
136byte BatteryInfo::present
137```
138**描述:**
139表示是否支持电池或者电池是否在位。
140
141
142### remainEnergy
143
144
145```
146int BatteryInfo::remainEnergy
147```
148**描述:**
149表示电池的剩余容量。
150
151
152### technology
153
154
155```
156String BatteryInfo::technology
157```
158**描述:**
159表示电池的技术型号。
160
161
162### temperature
163
164
165```
166int BatteryInfo::temperature
167```
168**描述:**
169表示电池的温度
170
171
172### totalEnergy
173
174
175```
176int BatteryInfo::totalEnergy
177```
178**描述:**
179表示电池的总容量。
180
181
182### voltage
183
184
185```
186int BatteryInfo::voltage
187```
188**描述:**
189表示电池的电压。
190