diff --git a/api/@ohos.app.ability.appManager.d.ts b/api/@ohos.app.ability.appManager.d.ts index 026423f30843dc3efd49dd66342aff6523f472e4..bd024eb03993f0d1658d7cb7b2bd6f9aa7cb3188 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. *