From 9f541875ea963333953512b7eb038ce003333e41 Mon Sep 17 00:00:00 2001 From: Luobniz21 Date: Wed, 20 Aug 2025 09:57:36 +0800 Subject: [PATCH] startRecentAbility Signed-off-by: Luobniz21 --- api/application/UIAbilityContext.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/application/UIAbilityContext.d.ts b/api/application/UIAbilityContext.d.ts index d8b9b4fa64..fc832cf19e 100644 --- a/api/application/UIAbilityContext.d.ts +++ b/api/application/UIAbilityContext.d.ts @@ -4015,6 +4015,7 @@ declare class UIAbilityContext extends Context { * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability. * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC. * + * @permission ohos.permission.START_RECENT_ABILITY * @param { Want } want - Indicates the ability to start. * @param { AsyncCallback } callback - The callback of startAbility. * @throws { BusinessError } 201 - The application does not have permission to call the interface. @@ -4151,6 +4152,7 @@ declare class UIAbilityContext extends Context { * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability. * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC. * + * @permission ohos.permission.START_RECENT_ABILITY * @param { Want } want - Indicates the ability to start. * @param { StartOptions } options - Indicates the start options. * @param { AsyncCallback } callback - The callback of startAbility. @@ -4290,6 +4292,7 @@ declare class UIAbilityContext extends Context { * you need to apply for permission:ohos.permission.START_INVISIBLE_ABILITY to start target invisible ability. * If the target ability is in cross-device, you need to apply for permission:ohos.permission.DISTRIBUTED_DATASYNC. * + * @permission ohos.permission.START_RECENT_ABILITY * @param { Want } want - Indicates the ability to start. * @param { StartOptions } [options] - Indicates the start options. * @returns { Promise } The promise returned by the function. -- Gitee