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