Change Type Old Version New Version d.ts File
Added NA Module name: ohos.batteryInfo
Class name: batteryInfo
Method or attribute name: const batteryCapacityLevel: BatteryCapacityLevel;
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: batteryInfo
Method or attribute name: const estimatedRemainingChargeTime: number;
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: batteryInfo
Method or attribute name: const totalEnergy: number;
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: batteryInfo
Method or attribute name: const nowCurrent: number;
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: batteryInfo
Method or attribute name: const remainingEnergy: number;
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
Method or attribute name: LEVEL_FULL
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
Method or attribute name: LEVEL_HIGH
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
Method or attribute name: LEVEL_NORMAL
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
Method or attribute name: LEVEL_LOW
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
Method or attribute name: LEVEL_WARNING
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
Method or attribute name: LEVEL_CRITICAL
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: BatteryCapacityLevel
Method or attribute name: LEVEL_SHUTDOWN
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_SOC = "soc"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_CHARGE_STATE = "chargeState"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_HEALTH_STATE = "healthState"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_PLUGGED_TYPE = "pluggedType"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_VOLTAGE = "voltage"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_TECHNOLOGY = "technology"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_TEMPERATURE = "temperature"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_PRESENT = "present"
@ohos.batteryInfo.d.ts
Added NA Module name: ohos.batteryInfo
Class name: CommonEventBatteryChangedKey
Method or attribute name: EXTRA_CAPACITY_LEVEL = "capacityLevel"
@ohos.batteryInfo.d.ts
Added NA Class name: power
Method or attribute name: function shutdown(reason: string): void;
@ohos.power.d.ts
Added NA Class name: power
Method or attribute name: function reboot(reason: string): void;
@ohos.power.d.ts
Added NA Class name: power
Method or attribute name: function isActive(): boolean;
@ohos.power.d.ts
Added NA Class name: power
Method or attribute name: function wakeup(detail: string): void;
@ohos.power.d.ts
Added NA Class name: power
Method or attribute name: function suspend(): void;
@ohos.power.d.ts
Added NA Class name: power
Method or attribute name: function getPowerMode(): DevicePowerMode;
@ohos.power.d.ts
Added NA Class name: power
Method or attribute name: function setPowerMode(mode: DevicePowerMode, callback: AsyncCallback<void>): void;
@ohos.power.d.ts
Added NA Class name: power
Method or attribute name: function setPowerMode(mode: DevicePowerMode): Promise<void>;
@ohos.power.d.ts
Added NA Module name: ohos.power
Class name: DevicePowerMode
@ohos.power.d.ts
Added NA Class name: DevicePowerMode
Method or attribute name:
@ohos.power.d.ts
Added NA Module name: ohos.power
Class name: DevicePowerMode
Method or attribute name: MODE_NORMAL = 600
@ohos.power.d.ts
Added NA Class name: DevicePowerMode
Method or attribute name: MODE_NORMAL = 600
@ohos.power.d.ts
Added NA Module name: ohos.power
Class name: DevicePowerMode
Method or attribute name: MODE_POWER_SAVE
@ohos.power.d.ts
Added NA Class name: DevicePowerMode
Method or attribute name: MODE_POWER_SAVE
@ohos.power.d.ts
Added NA Module name: ohos.power
Class name: DevicePowerMode
Method or attribute name: MODE_PERFORMANCE
@ohos.power.d.ts
Added NA Class name: DevicePowerMode
Method or attribute name: MODE_PERFORMANCE
@ohos.power.d.ts
Added NA Module name: ohos.power
Class name: DevicePowerMode
Method or attribute name: MODE_EXTREME_POWER_SAVE
@ohos.power.d.ts
Added NA Class name: DevicePowerMode
Method or attribute name: MODE_EXTREME_POWER_SAVE
@ohos.power.d.ts
Added NA Class name: RunningLock
Method or attribute name: hold(timeout: number): void;
@ohos.runningLock.d.ts
Added NA Class name: RunningLock
Method or attribute name: isHolding(): boolean;
@ohos.runningLock.d.ts
Added NA Class name: RunningLock
Method or attribute name: unhold(): void;
@ohos.runningLock.d.ts
Added NA Class name: runningLock
Method or attribute name: function isSupported(type: RunningLockType): boolean;
@ohos.runningLock.d.ts
Added NA Class name: runningLock
Method or attribute name: function create(name: string, type: RunningLockType, callback: AsyncCallback<RunningLock>): void;
@ohos.runningLock.d.ts
Added NA Class name: runningLock
Method or attribute name: function create(name: string, type: RunningLockType): Promise<RunningLock>;
@ohos.runningLock.d.ts
Added NA Class name: thermal
Method or attribute name: function registerThermalLevelCallback(callback: Callback<ThermalLevel>): void;
@ohos.thermal.d.ts
Added NA Class name: thermal
Method or attribute name: function unregisterThermalLevelCallback(callback?: Callback<void>): void;
@ohos.thermal.d.ts
Added NA Class name: thermal
Method or attribute name: function getLevel(): ThermalLevel;
@ohos.thermal.d.ts
Deleted Module name: ohos.power
Class name: power
Method or attribute name: function shutdownDevice(reason: string): void;
NA @ohos.power.d.ts
Access level changed Class name: brightness
Access level: public API
Class name: brightness
Access level: system API
@ohos.brightness.d.ts
Deprecated version changed Class name: power
Method or attribute name: function rebootDevice(reason: string): void;
Deprecated version: N/A
Class name: power
Method or attribute name: function rebootDevice(reason: string): void;
Deprecated version: 9
Substitute API: {@link power
@ohos.power.d.ts
Deprecated version changed Class name: power
Method or attribute name: function isScreenOn(callback: AsyncCallback<boolean>): void;
Deprecated version: N/A
Class name: power
Method or attribute name: function isScreenOn(callback: AsyncCallback<boolean>): void;
Deprecated version: 9
Substitute API: {@link power
@ohos.power.d.ts
Deprecated version changed Class name: power
Method or attribute name: function isScreenOn(): Promise<boolean>;
Deprecated version: N/A
Class name: power
Method or attribute name: function isScreenOn(): Promise<boolean>;
Deprecated version: 9
Substitute API: {@link power
@ohos.power.d.ts
Deprecated version changed Class name: RunningLock
Method or attribute name: lock(timeout: number): void;
Deprecated version: N/A
Class name: RunningLock
Method or attribute name: lock(timeout: number): void;
Deprecated version: 9
Substitute API: {@link RunningLock
@ohos.runningLock.d.ts
Deprecated version changed Class name: RunningLock
Method or attribute name: isUsed(): boolean;
Deprecated version: N/A
Class name: RunningLock
Method or attribute name: isUsed(): boolean;
Deprecated version: 9
Substitute API: {@link RunningLock
@ohos.runningLock.d.ts
Deprecated version changed Class name: RunningLock
Method or attribute name: unlock(): void;
Deprecated version: N/A
Class name: RunningLock
Method or attribute name: unlock(): void;
Deprecated version: 9
Substitute API: {@link RunningLock
@ohos.runningLock.d.ts
Deprecated version changed Class name: runningLock
Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback<boolean>): void;
Deprecated version: N/A
Class name: runningLock
Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback<boolean>): void;
Deprecated version: 9
Substitute API: {@link RunningLock
@ohos.runningLock.d.ts
Deprecated version changed Class name: runningLock
Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise<boolean>;
Deprecated version: N/A
Class name: runningLock
Method or attribute name: function isRunningLockTypeSupported(type: RunningLockType): Promise<boolean>;
Deprecated version: 9
Substitute API: {@link RunningLock
@ohos.runningLock.d.ts
Deprecated version changed Class name: runningLock
Method or attribute name: function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback<RunningLock>): void;
Deprecated version: N/A
Class name: runningLock
Method or attribute name: function createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback<RunningLock>): void;
Deprecated version: 9
Substitute API: {@link RunningLock
@ohos.runningLock.d.ts
Deprecated version changed Class name: runningLock
Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise<RunningLock>;
Deprecated version: N/A
Class name: runningLock
Method or attribute name: function createRunningLock(name: string, type: RunningLockType): Promise<RunningLock>;
Deprecated version: 9
Substitute API: {@link RunningLock
@ohos.runningLock.d.ts
Deprecated version changed Class name: thermal
Method or attribute name: function subscribeThermalLevel(callback: AsyncCallback<ThermalLevel>): void;
Deprecated version: N/A
Class name: thermal
Method or attribute name: function subscribeThermalLevel(callback: AsyncCallback<ThermalLevel>): void;
Deprecated version: 9
Substitute API: {@link thermal
@ohos.thermal.d.ts
Deprecated version changed Class name: thermal
Method or attribute name: function unsubscribeThermalLevel(callback?: AsyncCallback<void>): void;
Deprecated version: N/A
Class name: thermal
Method or attribute name: function unsubscribeThermalLevel(callback?: AsyncCallback<void>): void;
Deprecated version: 9
Substitute API: {@link thermal
@ohos.thermal.d.ts
Deprecated version changed Class name: thermal
Method or attribute name: function getThermalLevel(): ThermalLevel;
Deprecated version: N/A
Class name: thermal
Method or attribute name: function getThermalLevel(): ThermalLevel;
Deprecated version: 9
Substitute API: {@link thermal
@ohos.thermal.d.ts
Deprecated version changed Class name: BatteryResponse
Deprecated version: N/A
Class name: BatteryResponse
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: BatteryResponse
Method or attribute name: charging: boolean;
Deprecated version: N/A
Class name: BatteryResponse
Method or attribute name: charging: boolean;
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: BatteryResponse
Method or attribute name: level: number;
Deprecated version: N/A
Class name: BatteryResponse
Method or attribute name: level: number;
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: GetStatusOptions
Deprecated version: N/A
Class name: GetStatusOptions
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: GetStatusOptions
Method or attribute name: success?: (data: BatteryResponse) => void;
Deprecated version: N/A
Class name: GetStatusOptions
Method or attribute name: success?: (data: BatteryResponse) => void;
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: GetStatusOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: N/A
Class name: GetStatusOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: GetStatusOptions
Method or attribute name: complete?: () => void;
Deprecated version: N/A
Class name: GetStatusOptions
Method or attribute name: complete?: () => void;
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: Battery
Deprecated version: N/A
Class name: Battery
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: Battery
Method or attribute name: static getStatus(options?: GetStatusOptions): void;
Deprecated version: N/A
Class name: Battery
Method or attribute name: static getStatus(options?: GetStatusOptions): void;
Deprecated version: 6
Substitute API: N/A
@system.battery.d.ts
Deprecated version changed Class name: BrightnessResponse
Deprecated version: N/A
Class name: BrightnessResponse
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: BrightnessResponse
Method or attribute name: value: number;
Deprecated version: N/A
Class name: BrightnessResponse
Method or attribute name: value: number;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessOptions
Deprecated version: N/A
Class name: GetBrightnessOptions
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessOptions
Method or attribute name: success?: (data: BrightnessResponse) => void;
Deprecated version: N/A
Class name: GetBrightnessOptions
Method or attribute name: success?: (data: BrightnessResponse) => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: N/A
Class name: GetBrightnessOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessOptions
Method or attribute name: complete?: () => void;
Deprecated version: N/A
Class name: GetBrightnessOptions
Method or attribute name: complete?: () => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessOptions
Deprecated version: N/A
Class name: SetBrightnessOptions
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessOptions
Method or attribute name: value: number;
Deprecated version: N/A
Class name: SetBrightnessOptions
Method or attribute name: value: number;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessOptions
Method or attribute name: success?: () => void;
Deprecated version: N/A
Class name: SetBrightnessOptions
Method or attribute name: success?: () => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: N/A
Class name: SetBrightnessOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessOptions
Method or attribute name: complete?: () => void
Deprecated version: N/A
Class name: SetBrightnessOptions
Method or attribute name: complete?: () => void
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: BrightnessModeResponse
Deprecated version: N/A
Class name: BrightnessModeResponse
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: BrightnessModeResponse
Method or attribute name: mode: number;
Deprecated version: N/A
Class name: BrightnessModeResponse
Method or attribute name: mode: number;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessModeOptions
Deprecated version: N/A
Class name: GetBrightnessModeOptions
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessModeOptions
Method or attribute name: success?: (data: BrightnessModeResponse) => void;
Deprecated version: N/A
Class name: GetBrightnessModeOptions
Method or attribute name: success?: (data: BrightnessModeResponse) => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessModeOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: N/A
Class name: GetBrightnessModeOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: GetBrightnessModeOptions
Method or attribute name: complete?: () => void;
Deprecated version: N/A
Class name: GetBrightnessModeOptions
Method or attribute name: complete?: () => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessModeOptions
Deprecated version: N/A
Class name: SetBrightnessModeOptions
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessModeOptions
Method or attribute name: mode: number;
Deprecated version: N/A
Class name: SetBrightnessModeOptions
Method or attribute name: mode: number;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessModeOptions
Method or attribute name: success?: () => void;
Deprecated version: N/A
Class name: SetBrightnessModeOptions
Method or attribute name: success?: () => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessModeOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: N/A
Class name: SetBrightnessModeOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetBrightnessModeOptions
Method or attribute name: complete?: () => void
Deprecated version: N/A
Class name: SetBrightnessModeOptions
Method or attribute name: complete?: () => void
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetKeepScreenOnOptions
Deprecated version: N/A
Class name: SetKeepScreenOnOptions
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetKeepScreenOnOptions
Method or attribute name: keepScreenOn: boolean;
Deprecated version: N/A
Class name: SetKeepScreenOnOptions
Method or attribute name: keepScreenOn: boolean;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetKeepScreenOnOptions
Method or attribute name: success?: () => void;
Deprecated version: N/A
Class name: SetKeepScreenOnOptions
Method or attribute name: success?: () => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetKeepScreenOnOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: N/A
Class name: SetKeepScreenOnOptions
Method or attribute name: fail?: (data: string, code: number) => void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: SetKeepScreenOnOptions
Method or attribute name: complete?: () => void
Deprecated version: N/A
Class name: SetKeepScreenOnOptions
Method or attribute name: complete?: () => void
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: Brightness
Deprecated version: N/A
Class name: Brightness
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: Brightness
Method or attribute name: static getValue(options?: GetBrightnessOptions): void;
Deprecated version: N/A
Class name: Brightness
Method or attribute name: static getValue(options?: GetBrightnessOptions): void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: Brightness
Method or attribute name: static setValue(options?: SetBrightnessOptions): void;
Deprecated version: N/A
Class name: Brightness
Method or attribute name: static setValue(options?: SetBrightnessOptions): void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: Brightness
Method or attribute name: static getMode(options?: GetBrightnessModeOptions): void;
Deprecated version: N/A
Class name: Brightness
Method or attribute name: static getMode(options?: GetBrightnessModeOptions): void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: Brightness
Method or attribute name: static setMode(options?: SetBrightnessModeOptions): void;
Deprecated version: N/A
Class name: Brightness
Method or attribute name: static setMode(options?: SetBrightnessModeOptions): void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Deprecated version changed Class name: Brightness
Method or attribute name: static setKeepScreenOn(options?: SetKeepScreenOnOptions): void;
Deprecated version: N/A
Class name: Brightness
Method or attribute name: static setKeepScreenOn(options?: SetKeepScreenOnOptions): void;
Deprecated version: 7
Substitute API: N/A
@system.brightness.d.ts
Error code added NA Class name: batteryStats
Method or attribute name: function getBatteryStats(callback: AsyncCallback<Array<BatteryStatsInfo>>): void;
Error code: 401
@ohos.batteryStatistics.d.ts
Error code added NA Class name: batteryStats
Method or attribute name: function getAppPowerValue(uid: number): number;
Error code: 4600101
@ohos.batteryStatistics.d.ts
Error code added NA Class name: batteryStats
Method or attribute name: function getAppPowerPercent(uid: number): number;
Error code: 4600101
@ohos.batteryStatistics.d.ts
Error code added NA Class name: batteryStats
Method or attribute name: function getHardwareUnitPowerValue(type: ConsumptionType): number;
Error code: 401, 4600101
@ohos.batteryStatistics.d.ts
Error code added NA Class name: batteryStats
Method or attribute name: function getHardwareUnitPowerPercent(type: ConsumptionType): number;
Error code: 401, 4600101
@ohos.batteryStatistics.d.ts
Error code added NA Class name: brightness
Method or attribute name: function setValue(value: number): void;
Error code: 401, 4700101
@ohos.brightness.d.ts