1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_SOC = 'soc'|@ohos.batteryInfo.d.ts| 4|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_CHARGE_STATE = 'chargeState'|@ohos.batteryInfo.d.ts| 5|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_HEALTH_STATE = 'healthState'|@ohos.batteryInfo.d.ts| 6|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_PLUGGED_TYPE = 'pluggedType'|@ohos.batteryInfo.d.ts| 7|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_VOLTAGE = 'voltage'|@ohos.batteryInfo.d.ts| 8|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_TECHNOLOGY = 'technology'|@ohos.batteryInfo.d.ts| 9|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_TEMPERATURE = 'temperature'|@ohos.batteryInfo.d.ts| 10|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_PRESENT = 'present'|@ohos.batteryInfo.d.ts| 11|新增|NA|类名:CommonEventBatteryChangedKey<br>方法or属性:EXTRA_CAPACITY_LEVEL = 'capacityLevel'|@ohos.batteryInfo.d.ts| 12|新增|NA|模块名: ohos.charger<br>类名: charger|@ohos.charger.d.ts| 13|新增|NA|模块名: ohos.charger<br>类名: ChargeType|@ohos.charger.d.ts| 14|新增|NA|模块名: ohos.charger<br>类名: ChargeType<br>方法 or 属性: NONE|@ohos.charger.d.ts| 15|新增|NA|模块名: ohos.charger<br>类名: ChargeType<br>方法 or 属性: WIRED_NORMAL|@ohos.charger.d.ts| 16|新增|NA|模块名: ohos.charger<br>类名: ChargeType<br>方法 or 属性: WIRED_QUICK|@ohos.charger.d.ts| 17|新增|NA|模块名: ohos.charger<br>类名: ChargeType<br>方法 or 属性: WIRED_SUPER_QUICK|@ohos.charger.d.ts| 18|新增|NA|模块名: ohos.charger<br>类名: ChargeType<br>方法 or 属性: WIRELESS_NORMAL|@ohos.charger.d.ts| 19|新增|NA|模块名: ohos.charger<br>类名: ChargeType<br>方法 or 属性: WIRELESS_QUICK|@ohos.charger.d.ts| 20|新增|NA|模块名: ohos.charger<br>类名: ChargeType<br>方法 or 属性: WIRELESS_SUPER_QUICK|@ohos.charger.d.ts| 21|废弃版本有变化|类名:RunningLockType<br>方法 or 属性:BACKGROUND = 1<br>废弃版本:N/A|类名:RunningLockType<br>方法 or 属性:BACKGROUND = 1<br>废弃版本:10<br>代替接口:N/A|@ohos.runningLock.d.ts| 22|新增(错误码)|NA|类名:batteryStats<br>方法 or 属性:function getBatteryStats(): Promise\<Array\<BatteryStatsInfo>>;<br>错误码内容: 202, 4600101|@ohos.batteryStatistics.d.ts| 23