From cc0bfc59f2a49d77c239be565f3c33c4ac994e78 Mon Sep 17 00:00:00 2001 From: yangxuguang-huawei Date: Mon, 25 Nov 2024 15:08:13 +0800 Subject: [PATCH] feat: getKeepAliveRunningProcessInformation Signed-off-by: yangxuguang-huawei --- api/@ohos.app.ability.appManager.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/@ohos.app.ability.appManager.d.ts b/api/@ohos.app.ability.appManager.d.ts index 026423f308..bd024eb039 100644 --- a/api/@ohos.app.ability.appManager.d.ts +++ b/api/@ohos.app.ability.appManager.d.ts @@ -1214,6 +1214,21 @@ declare namespace appManager { */ function killProcessesInBatch(pids: Array): Promise; + /** + * Get keep-alive running processes information for the current user. + * + * @permission ohos.permission.GET_RUNNING_INFO + * @returns { Promise> } Returns the list of ProcessInformation. + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 202 - Not system application. + * @throws { BusinessError } 16000050 - Internal error. + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @systemapi + * @stagemodelonly + * @since 20 + */ + function getKeepAliveRunningProcessInfos(): Promise>; + /** * The ability or extension state data. * -- Gitee