mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
设备应用统计接口变动
Signed-off-by: wyuanchao <wangyuanchao5@huawei.com>
This commit is contained in:
parent
ae42ce7fa0
commit
45c404f778
13
api/@ohos.bundleState.d.ts
vendored
13
api/@ohos.bundleState.d.ts
vendored
@ -265,6 +265,19 @@ declare namespace bundleState {
|
||||
function isIdleState(bundleName: string, callback: AsyncCallback<boolean>): void;
|
||||
function isIdleState(bundleName: string): Promise<boolean>;
|
||||
|
||||
/**
|
||||
* Queries the usage priority group of the calling application.
|
||||
*
|
||||
* <p>The priority defined in a priority group restricts the resource usage of an application,
|
||||
* for example, restricting the running of background tasks. </p>
|
||||
*
|
||||
* @since 7
|
||||
* @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup
|
||||
* @return Returns the usage priority group of the calling application.
|
||||
*/
|
||||
function queryAppUsagePriorityGroup(callback: AsyncCallback<number>): void;
|
||||
function queryAppUsagePriorityGroup(): Promise<number>;
|
||||
|
||||
/**
|
||||
* @since 7
|
||||
* @syscap SystemCapability.ResourceSchedule.UsageStatistics.App
|
||||
|
Loading…
Reference in New Issue
Block a user