设备应用统计接口变动

Signed-off-by: wyuanchao <wangyuanchao5@huawei.com>
This commit is contained in:
wyuanchao 2022-06-08 16:37:20 +08:00
parent ae42ce7fa0
commit 45c404f778

View File

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