From dc32ec02d7e5efeac9453ba418129956bf64f9d9 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Fri, 6 Jun 2025 15:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81UIExtensionAbility=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E8=BF=9B=E7=A8=8B=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- api/@ohos.app.ability.AbilityStage.d.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/api/@ohos.app.ability.AbilityStage.d.ts b/api/@ohos.app.ability.AbilityStage.d.ts index a4e2ace68e..17e5201b46 100644 --- a/api/@ohos.app.ability.AbilityStage.d.ts +++ b/api/@ohos.app.ability.AbilityStage.d.ts @@ -166,10 +166,24 @@ export default class AbilityStage { * @stagemodelonly * @since 11 */ + /** + * Called when UIAbility or configured with the isolationProcess field UIExtensionAbility in the specified process is started. + * + *

**NOTE**: + *
This API returns the result synchronously and does not support asynchronous callbacks. + *

+ * + * @param { Want } want - Want information about the target ability, such as the ability name and bundle name. + * @returns { string } Custom process identifier. If the process with this identifier has been created, the ability + * runs in the process. Otherwise, a new process is created and the ability runs in it. + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @stagemodelonly + * @since 20 + */ onNewProcessRequest(want: Want): string; /** - * Called back asynchronously upon starting UIAbility in specified process. + * Called back asynchronously upon starting UIAbility or UIExtensionAbility in specified process. * * @param { Want } want - Indicates the want info of the started ability. * @returns { Promise } The user returns an ability string ID. If the ability of this ID has been started before, -- Gitee