harmony 鸿蒙js-apidiff-battery
Change Type | Old Version | New Version | d.ts File |
---|---|---|---|
Added | NA | Class name: ChargeType; Method or attribute name: NONE |
@ohos.charger.d.ts |
Added | NA | Class name: ChargeType; Method or attribute name: WIRED_NORMAL |
@ohos.charger.d.ts |
Added | NA | Class name: ChargeType; Method or attribute name: WIRED_QUICK |
@ohos.charger.d.ts |
Added | NA | Class name: ChargeType; Method or attribute name: WIRED_SUPER_QUICK |
@ohos.charger.d.ts |
Added | NA | Class name: ChargeType; Method or attribute name: WIRELESS_NORMAL |
@ohos.charger.d.ts |
Added | NA | Class name: ChargeType; Method or attribute name: WIRELESS_QUICK |
@ohos.charger.d.ts |
Added | NA | Class name: ChargeType; Method or attribute name: WIRELESS_SUPER_QUICK |
@ohos.charger.d.ts |
Added | NA | Class name: power; Method or attribute name: function isStandby(): boolean; |
@ohos.power.d.ts |
Deprecated version changed | Class name: power; Method or attribute name: function isScreenOn(): Promise<boolean>; Old version information: |
Class name: power; Method or attribute name: function isScreenOn(): Promise<boolean>; New version information: 9 Substitute API: power#isActive |
@ohos.power.d.ts |
Deprecated version changed | Class name: runningLock; Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise<boolean>; Old version information: |
Class name: runningLock; Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise<boolean>; New version information: 9 Substitute API: RunningLock#isSupported |
@ohos.runningLock.d.ts |
Deprecated version changed | Class name: runningLock; Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise<RunningLock>; Old version information: |
Class name: runningLock; Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise<RunningLock>; New version information: 9 Substitute API: RunningLock#create |
@ohos.runningLock.d.ts |
Deprecated version changed | Class name: RunningLockType; Method or attribute name: BACKGROUND = 1 Old version information: |
Class name: RunningLockType; Method or attribute name: BACKGROUND = 1 New version information: 10 Substitute API: |
@ohos.runningLock.d.ts |
Error code added | Class name: batteryStats; Method or attribute name: function getBatteryStats(): Promise<Array<BatteryStatsInfo>>; Old version information: |
Class name: batteryStats; Method or attribute name: function getBatteryStats(): Promise<Array<BatteryStatsInfo>>; New version information: 202,4600101 |
@ohos.batteryStatistics.d.ts |
Error code changed | Class name: batteryStats; Method or attribute name: function getBatteryStats(callback: AsyncCallback<Array<BatteryStatsInfo>>): void; Old version information: 401 |
Class name: batteryStats; Method or attribute name: function getBatteryStats(callback: AsyncCallback<Array<BatteryStatsInfo>>): void; New version information: 202,401,4600101 |
@ohos.batteryStatistics.d.ts |
Error code changed | Class name: batteryStats; Method or attribute name: function getAppPowerValue(uid: number): number; Old version information: 4600101 |
Class name: batteryStats; Method or attribute name: function getAppPowerValue(uid: number): number; New version information: 202,4600101 |
@ohos.batteryStatistics.d.ts |
Error code changed | Class name: batteryStats; Method or attribute name: function getAppPowerPercent(uid: number): number; Old version information: 4600101 |
Class name: batteryStats; Method or attribute name: function getAppPowerPercent(uid: number): number; New version information: 202,4600101 |
@ohos.batteryStatistics.d.ts |
Error code changed | Class name: batteryStats; Method or attribute name: function getHardwareUnitPowerValue(type: ConsumptionType): number; Old version information: 401,4600101 |
Class name: batteryStats; Method or attribute name: function getHardwareUnitPowerValue(type: ConsumptionType): number; New version information: 202,401,4600101 |
@ohos.batteryStatistics.d.ts |
Error code changed | Class name: batteryStats; Method or attribute name: function getHardwareUnitPowerPercent(type: ConsumptionType): number; Old version information: 401,4600101 |
Class name: batteryStats; Method or attribute name: function getHardwareUnitPowerPercent(type: ConsumptionType): number; New version information: 202,401,4600101 |
@ohos.batteryStatistics.d.ts |
Error code changed | Class name: brightness; Method or attribute name: function setValue(value: number): void; Old version information: 401,4700101 |
Class name: brightness; Method or attribute name: function setValue(value: number): void; New version information: 202,401,4700101 |
@ohos.brightness.d.ts |
Error code changed | Class name: power; Method or attribute name: function shutdown(reason: string): void; Old version information: 201,401,4900101 |
Class name: power; Method or attribute name: function shutdown(reason: string): void; New version information: 201,202,401,4900101 |
@ohos.power.d.ts |
Error code changed | Class name: power; Method or attribute name: function reboot(reason: string): void; Old version information: 201,401,4900101 |
Class name: power; Method or attribute name: function reboot(reason: string): void; New version information: 201,202,401,4900101 |
@ohos.power.d.ts |
Error code changed | Class name: power; Method or attribute name: function wakeup(detail: string): void; Old version information: 401,4900101 |
Class name: power; Method or attribute name: function wakeup(detail: string): void; New version information: 202,401,4900101 |
@ohos.power.d.ts |
Error code changed | Class name: power; Method or attribute name: function suspend(isImmediate?: boolean): void; Old version information: 4900101 |
Class name: power; Method or attribute name: function suspend(isImmediate?: boolean): void; New version information: 202,4900101 |
@ohos.power.d.ts |
Error code changed | Class name: power; Method or attribute name: function setPowerMode(mode: DevicePowerMode, callback: AsyncCallback<void>): void; Old version information: 201,401 |
Class name: power; Method or attribute name: function setPowerMode(mode: DevicePowerMode, callback: AsyncCallback<void>): void; New version information: 201,202,401,4900101 |
@ohos.power.d.ts |
Error code changed | Class name: power; Method or attribute name: function setPowerMode(mode: DevicePowerMode): Promise<void>; Old version information: 201,401 |
Class name: power; Method or attribute name: function setPowerMode(mode: DevicePowerMode): Promise<void>; New version information: 201,202,401,4900101 |
@ohos.power.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_INVALID = -17 Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_INVALID = -17 New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_APP Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_APP New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_BLUETOOTH Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_BLUETOOTH New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_IDLE Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_IDLE New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_PHONE Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_PHONE New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_RADIO Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_RADIO New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_SCREEN Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_SCREEN New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_USER Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_USER New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_WIFI Old version information: |
Class name: ConsumptionType; Method or attribute name: CONSUMPTION_TYPE_WIFI New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: BatteryStatsInfo; Method or attribute name: uid: number; Old version information: |
Class name: BatteryStatsInfo; Method or attribute name: uid: number; New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: BatteryStatsInfo; Method or attribute name: type: ConsumptionType; Old version information: |
Class name: BatteryStatsInfo; Method or attribute name: type: ConsumptionType; New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Access level changed | Class name: BatteryStatsInfo; Method or attribute name: power: number; Old version information: |
Class name: BatteryStatsInfo; Method or attribute name: power: number; New version information: systemapi |
@ohos.batteryStatistics.d.ts |
Permission changed | Class name: runningLock; Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise<RunningLock>; Old version information: |
Class name: runningLock; Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise<RunningLock>; New version information: ohos.permission.RUNNING_LOCK |
@ohos.runningLock.d.ts |
Function changed | Class name: power; Method or attribute name: function suspend(): void; |
Class name: power; Method or attribute name: function suspend(isImmediate?: boolean): void; |
@ohos.power.d.ts |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙js-apidiff-accessibility
harmony 鸿蒙js-apidiff-application
harmony 鸿蒙js-apidiff-communication
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦