| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_SOC = 'soc'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_CHARGE_STATE = 'chargeState'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_HEALTH_STATE = 'healthState'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_PLUGGED_TYPE = 'pluggedType'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_VOLTAGE = 'voltage'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_TECHNOLOGY = 'technology'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_TEMPERATURE = 'temperature'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_PRESENT = 'present'|@ohos.batteryInfo.d.ts| |新增|NA|类名:CommonEventBatteryChangedKey
方法or属性:EXTRA_CAPACITY_LEVEL = 'capacityLevel'|@ohos.batteryInfo.d.ts| |新增|NA|模块名: ohos.charger
类名: charger|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType
方法 or 属性: NONE|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType
方法 or 属性: WIRED_NORMAL|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType
方法 or 属性: WIRED_QUICK|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType
方法 or 属性: WIRED_SUPER_QUICK|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType
方法 or 属性: WIRELESS_NORMAL|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType
方法 or 属性: WIRELESS_QUICK|@ohos.charger.d.ts| |新增|NA|模块名: ohos.charger
类名: ChargeType
方法 or 属性: WIRELESS_SUPER_QUICK|@ohos.charger.d.ts| |废弃版本有变化|类名:RunningLockType
方法 or 属性:BACKGROUND = 1
废弃版本:N/A|类名:RunningLockType
方法 or 属性:BACKGROUND = 1
废弃版本:10
代替接口:N/A|@ohos.runningLock.d.ts| |新增(错误码)|NA|类名:batteryStats
方法 or 属性:function getBatteryStats(): Promise\>;
错误码内容: 202, 4600101|@ohos.batteryStatistics.d.ts|