openharmony 鸿蒙 js-apidiff-battery

2023-06-24 浏览 (954)
操作旧版本新版本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<Array<BatteryStatsInfo>>;
错误码内容: 202, 4600101
@ohos.batteryStatistics.d.ts

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙js-apidiff-ability

harmony 鸿蒙js-apidiff-accessibility

harmony 鸿蒙js-apidiff-account

harmony 鸿蒙js-apidiff-arkui

harmony 鸿蒙js-apidiff-bundle

harmony 鸿蒙js-apidiff-communication

harmony 鸿蒙js-apidiff-compiler-and-runtime

harmony 鸿蒙js-apidiff-customization

harmony 鸿蒙js-apidiff-distributed-data

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/026f0b69efc04091b2e3b7a3247e7037