js-apidiff-battery.md 2.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Change Type | Old Version | New Version | d.ts File |
| ---- | ------ | ------ | -------- |
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_SOC = 'soc'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_CHARGE_STATE = 'chargeState'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_HEALTH_STATE = 'healthState'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_PLUGGED_TYPE = 'pluggedType'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_VOLTAGE = 'voltage'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_TECHNOLOGY = 'technology'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_TEMPERATURE = 'temperature'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_PRESENT = 'present'|@ohos.batteryInfo.d.ts|
|Added|NA|Class name: CommonEventBatteryChangedKey<br>Method or attribute name: EXTRA_CAPACITY_LEVEL = 'capacityLevel'|@ohos.batteryInfo.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: charger|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType<br>Method or attribute name: NONE|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType<br>Method or attribute name: WIRED_NORMAL|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType<br>Method or attribute name: WIRED_QUICK|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType<br>Method or attribute name: WIRED_SUPER_QUICK|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType<br>Method or attribute name: WIRELESS_NORMAL|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType<br>Method or attribute name: WIRELESS_QUICK|@ohos.charger.d.ts|
|Added|NA|Module name: ohos.charger<br>Class name: ChargeType<br>Method or attribute name: WIRELESS_SUPER_QUICK|@ohos.charger.d.ts|
|Deprecated version changed|Class name: RunningLockType<br>Method or attribute name: BACKGROUND = 1<br>Deprecated version: N/A|Class name: RunningLockType<br>Method or attribute name: BACKGROUND = 1<br>Deprecated version: 10<br>Substitute API: N/A|@ohos.runningLock.d.ts|
|Error code added|NA|Class name: batteryStats<br>Method or attribute name: function getBatteryStats(): Promise\<Array\<BatteryStatsInfo>>;<br>Error code: 202, 4600101|@ohos.batteryStatistics.d.ts|