fix: add isStandby

Signed-off-by: liangjunhao <liangjunhao10@huawei.com>
This commit is contained in:
liangjunhao 2023-06-26 11:25:02 +00:00
parent a6e828e028
commit d2d1eaa12e

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

@ -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.
*