• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1| Change Type | Old Version | New Version | d.ts File |
2| ---- | ------ | ------ | -------- |
3|Deleted|Class name: power;<br>Method or attribute name: function shutdownDevice(reason: string): void;|NA|@ohos.power.d.ts|
4|Added|NA|Class name: BatteryCapacityLevel;<br>Method or attribute name: LEVEL_FULL|@ohos.batteryInfo.d.ts|
5|Added|NA|Class name: BatteryCapacityLevel;<br>Method or attribute name: LEVEL_HIGH|@ohos.batteryInfo.d.ts|
6|Added|NA|Class name: BatteryCapacityLevel;<br>Method or attribute name: LEVEL_NORMAL|@ohos.batteryInfo.d.ts|
7|Added|NA|Class name: BatteryCapacityLevel;<br>Method or attribute name: LEVEL_LOW|@ohos.batteryInfo.d.ts|
8|Added|NA|Class name: BatteryCapacityLevel;<br>Method or attribute name: LEVEL_WARNING|@ohos.batteryInfo.d.ts|
9|Added|NA|Class name: BatteryCapacityLevel;<br>Method or attribute name: LEVEL_CRITICAL|@ohos.batteryInfo.d.ts|
10|Added|NA|Class name: BatteryCapacityLevel;<br>Method or attribute name: LEVEL_SHUTDOWN|@ohos.batteryInfo.d.ts|
11|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_SOC = "soc"|@ohos.batteryInfo.d.ts|
12|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_CHARGE_STATE = "chargeState"|@ohos.batteryInfo.d.ts|
13|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_HEALTH_STATE = "healthState"|@ohos.batteryInfo.d.ts|
14|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_PLUGGED_TYPE = "pluggedType"|@ohos.batteryInfo.d.ts|
15|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_VOLTAGE = "voltage"|@ohos.batteryInfo.d.ts|
16|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_TECHNOLOGY = "technology"|@ohos.batteryInfo.d.ts|
17|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_TEMPERATURE = "temperature"|@ohos.batteryInfo.d.ts|
18|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_PRESENT = "present"|@ohos.batteryInfo.d.ts|
19|Added|NA|Class name: CommonEventBatteryChangedKey;<br>Method or attribute name: EXTRA_CAPACITY_LEVEL = "capacityLevel"|@ohos.batteryInfo.d.ts|
20|Added|NA|Class name: power;<br>Method or attribute name: function shutdown(reason: string): void;|@ohos.power.d.ts|
21|Added|NA|Class name: power;<br>Method or attribute name: function reboot(reason: string): void;|@ohos.power.d.ts|
22|Added|NA|Class name: power;<br>Method or attribute name: function isActive(): boolean;|@ohos.power.d.ts|
23|Added|NA|Class name: power;<br>Method or attribute name: function wakeup(detail: string): void;|@ohos.power.d.ts|
24|Added|NA|Class name: power;<br>Method or attribute name: function suspend(): void;|@ohos.power.d.ts|
25|Added|NA|Class name: power;<br>Method or attribute name: function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts|
26|Added|NA|Class name: power;<br>Method or attribute name: function setPowerMode(mode: DevicePowerMode, callback: AsyncCallback\<void>): void;|@ohos.power.d.ts|
27|Added|NA|Class name: power;<br>Method or attribute name: function setPowerMode(mode: DevicePowerMode): Promise\<void>;|@ohos.power.d.ts|
28|Added|NA|Class name: DevicePowerMode;<br>Method or attribute name: MODE_NORMAL = 600|@ohos.power.d.ts|
29|Added|NA|Class name: DevicePowerMode;<br>Method or attribute name: MODE_POWER_SAVE|@ohos.power.d.ts|
30|Added|NA|Class name: DevicePowerMode;<br>Method or attribute name: MODE_PERFORMANCE|@ohos.power.d.ts|
31|Added|NA|Class name: DevicePowerMode;<br>Method or attribute name: MODE_EXTREME_POWER_SAVE|@ohos.power.d.ts|
32|Added|NA|Class name: runningLock;<br>Method or attribute name: function isSupported(type: RunningLockType): boolean;|@ohos.runningLock.d.ts|
33|Added|NA|Class name: runningLock;<br>Method or attribute name: function create(name: string, type: RunningLockType, callback: AsyncCallback\<RunningLock>): void;|@ohos.runningLock.d.ts|
34|Added|NA|Class name: runningLock;<br>Method or attribute name: function create(name: string, type: RunningLockType): Promise\<RunningLock>;|@ohos.runningLock.d.ts|
35|Added|NA|Class name: RunningLock;<br>Method or attribute name: hold(timeout: number): void;|@ohos.runningLock.d.ts|
36|Added|NA|Class name: RunningLock;<br>Method or attribute name: isHolding(): boolean;|@ohos.runningLock.d.ts|
37|Added|NA|Class name: RunningLock;<br>Method or attribute name: unhold(): void;|@ohos.runningLock.d.ts|
38|Added|NA|Class name: thermal;<br>Method or attribute name: function registerThermalLevelCallback(callback: Callback\<ThermalLevel>): void;|@ohos.thermal.d.ts|
39|Added|NA|Class name: thermal;<br>Method or attribute name: function unregisterThermalLevelCallback(callback?: Callback\<void>): void;|@ohos.thermal.d.ts|
40|Added|NA|Class name: thermal;<br>Method or attribute name: function getLevel(): ThermalLevel;|@ohos.thermal.d.ts|
41|Deprecated version changed|Class name: power;<br>Method or attribute name: function rebootDevice(reason: string): void;<br>Old version: |Class name: power;<br>Method or attribute name: function rebootDevice(reason: string): void;<br>New version: 9<br>Substitute API: |@ohos.power.d.ts|
42|Deprecated version changed|Class name: power;<br>Method or attribute name: function isScreenOn(callback: AsyncCallback\<boolean>): void;<br>Old version: |Class name: power;<br>Method or attribute name: function isScreenOn(callback: AsyncCallback\<boolean>): void;<br>New version: 9<br>Substitute API: |@ohos.power.d.ts|
43|Deprecated version changed|Class name: power;<br>Method or attribute name: function isScreenOn(): Promise\<boolean>;<br>Old version: |Class name: power;<br>Method or attribute name: function isScreenOn(): Promise\<boolean>;<br>New version: 9<br>Substitute API: |@ohos.power.d.ts|
44|Deprecated version changed|Class name: runningLock;<br>Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback\<boolean>): void;<br>Old version: |Class name: runningLock;<br>Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback\<boolean>): void;<br>New version: 9<br>Substitute API: |@ohos.runningLock.d.ts|
45|Deprecated version changed|Class name: runningLock;<br>Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise\<boolean>;<br>Old version: |Class name: runningLock;<br>Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise\<boolean>;<br>New version: 9<br>Substitute API: |@ohos.runningLock.d.ts|
46|Deprecated version changed|Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback\<RunningLock>): void;<br>Old version: |Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback\<RunningLock>): void;<br>New version: 9<br>Substitute API: |@ohos.runningLock.d.ts|
47|Deprecated version changed|Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise\<RunningLock>;<br>Old version: |Class name: runningLock;<br>Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise\<RunningLock>;<br>New version: 9<br>Substitute API: |@ohos.runningLock.d.ts|
48|Deprecated version changed|Class name: RunningLock;<br>Method or attribute name: lock(timeout: number): void;<br>Old version: |Class name: RunningLock;<br>Method or attribute name: lock(timeout: number): void;<br>New version: 9<br>Substitute API: |@ohos.runningLock.d.ts|
49|Deprecated version changed|Class name: RunningLock;<br>Method or attribute name: isUsed(): boolean;<br>Old version: |Class name: RunningLock;<br>Method or attribute name: isUsed(): boolean;<br>New version: 9<br>Substitute API: |@ohos.runningLock.d.ts|
50|Deprecated version changed|Class name: RunningLock;<br>Method or attribute name: unlock(): void;<br>Old version: |Class name: RunningLock;<br>Method or attribute name: unlock(): void;<br>New version: 9<br>Substitute API: |@ohos.runningLock.d.ts|
51|Deprecated version changed|Class name: thermal;<br>Method or attribute name: function subscribeThermalLevel(callback: AsyncCallback\<ThermalLevel>): void;<br>Old version: |Class name: thermal;<br>Method or attribute name: function subscribeThermalLevel(callback: AsyncCallback\<ThermalLevel>): void;<br>New version: 9<br>Substitute API: |@ohos.thermal.d.ts|
52|Deprecated version changed|Class name: thermal;<br>Method or attribute name: function unsubscribeThermalLevel(callback?: AsyncCallback\<void>): void;<br>Old version: |Class name: thermal;<br>Method or attribute name: function unsubscribeThermalLevel(callback?: AsyncCallback\<void>): void;<br>New version: 9<br>Substitute API: |@ohos.thermal.d.ts|
53|Deprecated version changed|Class name: thermal;<br>Method or attribute name: function getThermalLevel(): ThermalLevel;<br>Old version: |Class name: thermal;<br>Method or attribute name: function getThermalLevel(): ThermalLevel;<br>New version: 9<br>Substitute API: |@ohos.thermal.d.ts|
54|Deprecated version changed|Class name: BatteryResponse;<br>Method or attribute name: export interface BatteryResponse<br>Old version: |Class name: BatteryResponse;<br>Method or attribute name: export interface BatteryResponse<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
55|Deprecated version changed|Class name: BatteryResponse;<br>Method or attribute name: charging: boolean;<br>Old version: |Class name: BatteryResponse;<br>Method or attribute name: charging: boolean;<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
56|Deprecated version changed|Class name: BatteryResponse;<br>Method or attribute name: level: number;<br>Old version: |Class name: BatteryResponse;<br>Method or attribute name: level: number;<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
57|Deprecated version changed|Class name: GetStatusOptions;<br>Method or attribute name: export interface GetStatusOptions<br>Old version: |Class name: GetStatusOptions;<br>Method or attribute name: export interface GetStatusOptions<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
58|Deprecated version changed|Class name: GetStatusOptions;<br>Method or attribute name: success?: (data: BatteryResponse) => void;<br>Old version: |Class name: GetStatusOptions;<br>Method or attribute name: success?: (data: BatteryResponse) => void;<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
59|Deprecated version changed|Class name: GetStatusOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>Old version: |Class name: GetStatusOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
60|Deprecated version changed|Class name: GetStatusOptions;<br>Method or attribute name: complete?: () => void;<br>Old version: |Class name: GetStatusOptions;<br>Method or attribute name: complete?: () => void;<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
61|Deprecated version changed|Class name: Battery;<br>Method or attribute name: export default class Battery<br>Old version: |Class name: Battery;<br>Method or attribute name: export default class Battery<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
62|Deprecated version changed|Class name: Battery;<br>Method or attribute name: static getStatus(options?: GetStatusOptions): void;<br>Old version: |Class name: Battery;<br>Method or attribute name: static getStatus(options?: GetStatusOptions): void;<br>New version: 6<br>Substitute API: |@system.battery.d.ts|
63|Deprecated version changed|Class name: BrightnessResponse;<br>Method or attribute name: export interface BrightnessResponse<br>Old version: |Class name: BrightnessResponse;<br>Method or attribute name: export interface BrightnessResponse<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
64|Deprecated version changed|Class name: BrightnessResponse;<br>Method or attribute name: value: number;<br>Old version: |Class name: BrightnessResponse;<br>Method or attribute name: value: number;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
65|Deprecated version changed|Class name: SetBrightnessOptions;<br>Method or attribute name: value: number;<br>Old version: |Class name: SetBrightnessOptions;<br>Method or attribute name: value: number;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
66|Deprecated version changed|Class name: GetBrightnessOptions;<br>Method or attribute name: export interface GetBrightnessOptions<br>Old version: |Class name: GetBrightnessOptions;<br>Method or attribute name: export interface GetBrightnessOptions<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
67|Deprecated version changed|Class name: GetBrightnessOptions;<br>Method or attribute name: success?: (data: BrightnessResponse) => void;<br>Old version: |Class name: GetBrightnessOptions;<br>Method or attribute name: success?: (data: BrightnessResponse) => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
68|Deprecated version changed|Class name: GetBrightnessOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>Old version: |Class name: GetBrightnessOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
69|Deprecated version changed|Class name: SetBrightnessOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>Old version: |Class name: SetBrightnessOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
70|Deprecated version changed|Class name: GetBrightnessModeOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>Old version: |Class name: GetBrightnessModeOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
71|Deprecated version changed|Class name: SetBrightnessModeOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>Old version: |Class name: SetBrightnessModeOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
72|Deprecated version changed|Class name: SetKeepScreenOnOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>Old version: |Class name: SetKeepScreenOnOptions;<br>Method or attribute name: fail?: (data: string, code: number) => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
73|Deprecated version changed|Class name: GetBrightnessOptions;<br>Method or attribute name: complete?: () => void;<br>Old version: |Class name: GetBrightnessOptions;<br>Method or attribute name: complete?: () => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
74|Deprecated version changed|Class name: SetBrightnessOptions;<br>Method or attribute name: complete?: () => void<br>Old version: |Class name: SetBrightnessOptions;<br>Method or attribute name: complete?: () => void<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
75|Deprecated version changed|Class name: GetBrightnessModeOptions;<br>Method or attribute name: complete?: () => void;<br>Old version: |Class name: GetBrightnessModeOptions;<br>Method or attribute name: complete?: () => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
76|Deprecated version changed|Class name: SetBrightnessModeOptions;<br>Method or attribute name: complete?: () => void<br>Old version: |Class name: SetBrightnessModeOptions;<br>Method or attribute name: complete?: () => void<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
77|Deprecated version changed|Class name: SetKeepScreenOnOptions;<br>Method or attribute name: complete?: () => void<br>Old version: |Class name: SetKeepScreenOnOptions;<br>Method or attribute name: complete?: () => void<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
78|Deprecated version changed|Class name: SetBrightnessOptions;<br>Method or attribute name: export interface SetBrightnessOptions<br>Old version: |Class name: SetBrightnessOptions;<br>Method or attribute name: export interface SetBrightnessOptions<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
79|Deprecated version changed|Class name: SetBrightnessOptions;<br>Method or attribute name: success?: () => void;<br>Old version: |Class name: SetBrightnessOptions;<br>Method or attribute name: success?: () => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
80|Deprecated version changed|Class name: SetBrightnessModeOptions;<br>Method or attribute name: success?: () => void;<br>Old version: |Class name: SetBrightnessModeOptions;<br>Method or attribute name: success?: () => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
81|Deprecated version changed|Class name: SetKeepScreenOnOptions;<br>Method or attribute name: success?: () => void;<br>Old version: |Class name: SetKeepScreenOnOptions;<br>Method or attribute name: success?: () => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
82|Deprecated version changed|Class name: BrightnessModeResponse;<br>Method or attribute name: export interface BrightnessModeResponse<br>Old version: |Class name: BrightnessModeResponse;<br>Method or attribute name: export interface BrightnessModeResponse<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
83|Deprecated version changed|Class name: BrightnessModeResponse;<br>Method or attribute name: mode: number;<br>Old version: |Class name: BrightnessModeResponse;<br>Method or attribute name: mode: number;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
84|Deprecated version changed|Class name: SetBrightnessModeOptions;<br>Method or attribute name: mode: number;<br>Old version: |Class name: SetBrightnessModeOptions;<br>Method or attribute name: mode: number;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
85|Deprecated version changed|Class name: GetBrightnessModeOptions;<br>Method or attribute name: export interface GetBrightnessModeOptions<br>Old version: |Class name: GetBrightnessModeOptions;<br>Method or attribute name: export interface GetBrightnessModeOptions<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
86|Deprecated version changed|Class name: GetBrightnessModeOptions;<br>Method or attribute name: success?: (data: BrightnessModeResponse) => void;<br>Old version: |Class name: GetBrightnessModeOptions;<br>Method or attribute name: success?: (data: BrightnessModeResponse) => void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
87|Deprecated version changed|Class name: SetBrightnessModeOptions;<br>Method or attribute name: export interface SetBrightnessModeOptions<br>Old version: |Class name: SetBrightnessModeOptions;<br>Method or attribute name: export interface SetBrightnessModeOptions<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
88|Deprecated version changed|Class name: SetKeepScreenOnOptions;<br>Method or attribute name: export interface SetKeepScreenOnOptions<br>Old version: |Class name: SetKeepScreenOnOptions;<br>Method or attribute name: export interface SetKeepScreenOnOptions<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
89|Deprecated version changed|Class name: SetKeepScreenOnOptions;<br>Method or attribute name: keepScreenOn: boolean;<br>Old version: |Class name: SetKeepScreenOnOptions;<br>Method or attribute name: keepScreenOn: boolean;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
90|Deprecated version changed|Class name: Brightness;<br>Method or attribute name: export default class Brightness<br>Old version: |Class name: Brightness;<br>Method or attribute name: export default class Brightness<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
91|Deprecated version changed|Class name: Brightness;<br>Method or attribute name: static getValue(options?: GetBrightnessOptions): void;<br>Old version: |Class name: Brightness;<br>Method or attribute name: static getValue(options?: GetBrightnessOptions): void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
92|Deprecated version changed|Class name: Brightness;<br>Method or attribute name: static setValue(options?: SetBrightnessOptions): void;<br>Old version: |Class name: Brightness;<br>Method or attribute name: static setValue(options?: SetBrightnessOptions): void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
93|Deprecated version changed|Class name: Brightness;<br>Method or attribute name: static getMode(options?: GetBrightnessModeOptions): void;<br>Old version: |Class name: Brightness;<br>Method or attribute name: static getMode(options?: GetBrightnessModeOptions): void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
94|Deprecated version changed|Class name: Brightness;<br>Method or attribute name: static setMode(options?: SetBrightnessModeOptions): void;<br>Old version: |Class name: Brightness;<br>Method or attribute name: static setMode(options?: SetBrightnessModeOptions): void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
95|Deprecated version changed|Class name: Brightness;<br>Method or attribute name: static setKeepScreenOn(options?: SetKeepScreenOnOptions): void;<br>Old version: |Class name: Brightness;<br>Method or attribute name: static setKeepScreenOn(options?: SetKeepScreenOnOptions): void;<br>New version: 7<br>Substitute API: |@system.brightness.d.ts|
96|Error code added|Class name: batteryStats;<br>Method or attribute name: function getBatteryStats(callback: AsyncCallback\<Array\<BatteryStatsInfo>>): void;<br>Old version: |Class name: batteryStats;<br>Method or attribute name: function getBatteryStats(callback: AsyncCallback\<Array\<BatteryStatsInfo>>): void;<br>New version: 401|@ohos.batteryStatistics.d.ts|
97|Error code added|Class name: batteryStats;<br>Method or attribute name: function getAppPowerValue(uid: number): number;<br>Old version: |Class name: batteryStats;<br>Method or attribute name: function getAppPowerValue(uid: number): number;<br>New version: 4600101|@ohos.batteryStatistics.d.ts|
98|Error code added|Class name: batteryStats;<br>Method or attribute name: function getAppPowerPercent(uid: number): number;<br>Old version: |Class name: batteryStats;<br>Method or attribute name: function getAppPowerPercent(uid: number): number;<br>New version: 4600101|@ohos.batteryStatistics.d.ts|
99|Error code added|Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerValue(type: ConsumptionType): number;<br>Old version: |Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerValue(type: ConsumptionType): number;<br>New version: 401,4600101|@ohos.batteryStatistics.d.ts|
100|Error code added|Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerPercent(type: ConsumptionType): number;<br>Old version: |Class name: batteryStats;<br>Method or attribute name: function getHardwareUnitPowerPercent(type: ConsumptionType): number;<br>New version: 401,4600101|@ohos.batteryStatistics.d.ts|
101|Error code added|Class name: brightness;<br>Method or attribute name: function setValue(value: number): void;<br>Old version: |Class name: brightness;<br>Method or attribute name: function setValue(value: number): void;<br>New version: 401,4700101|@ohos.brightness.d.ts|
102|Access level changed|Class name: brightness;<br>Method or attribute name: declare brightness<br>Old version: |Class name: brightness;<br>Method or attribute name: declare brightness<br>New version: systemapi|@ohos.brightness.d.ts|
103