modify js api of powermanger

Signed-off-by: hujun211 <hujun211@huawei.com>
This commit is contained in:
hujun211 2022-04-13 21:12:09 -07:00
parent 0bb736bb8b
commit 2fb865efd8
2 changed files with 6 additions and 6 deletions

View File

@ -251,7 +251,7 @@ declare namespace batteryInfo {
*/
export enum CommonEventBatteryChangedCode {
/**
* Extra code of charge (SoC).
* Extra code of state of charge (SoC).
* @since 9
*/
EXTRA_SOC = 0,

10
api/@ohos.power.d.ts vendored
View File

@ -96,7 +96,7 @@ declare namespace power {
/**
* Indicates the power mode of a device.
*
* @syscap SystemCapability.PowerManager.BatteryManager.Core
* @syscap SystemCapability.PowerManager.PowerManager.Core
* @since 9
*/
export enum DevicePowerMode {
@ -104,22 +104,22 @@ declare namespace power {
* Performance power mode
* @since 9
*/
PERFORMANCE_MODE,
MODE_PERFORMANCE,
/**
* Normal power mode
* @since 9
*/
NORMAL_MODE,
MODE_NORMAL,
/**
* Power save mode
* @since 9
*/
POWER_SAVE_MODE,
MODE_POWER_SAVE,
/**
* Extreme power save mode
* @since 9
*/
EXTREME_SAVE_MODE
MODE_EXTREME_POWER_SAVE
}
}
export default power;