diff --git a/api/@ohos.app.ability.AbilityStage.d.ts b/api/@ohos.app.ability.AbilityStage.d.ts index a4e2ace68edb7c1c1b666b49ca1c210d79627f16..17e5201b46905b23750bd2d021e85276449e6736 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,