mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
fix: add isStandby
Signed-off-by: liangjunhao <liangjunhao10@huawei.com>
This commit is contained in:
parent
a6e828e028
commit
d2d1eaa12e
10
api/@ohos.power.d.ts
vendored
10
api/@ohos.power.d.ts
vendored
@ -180,6 +180,16 @@ declare namespace power {
|
||||
*/
|
||||
function setPowerMode(mode: DevicePowerMode): Promise<void>;
|
||||
|
||||
/**
|
||||
* Returns true if the device is currently in idle mode.
|
||||
*
|
||||
* @returns { boolean } Returns true if the device is in idle mode; returns false otherwise.
|
||||
* @throws { BusinessError } 4900101 - If connecting to the service failed.
|
||||
* @syscap SystemCapability.PowerManager.PowerManager.Core
|
||||
* @since 10
|
||||
*/
|
||||
function isStandby(): boolean;
|
||||
|
||||
/**
|
||||
* Power mode of a device.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user