From 5aac0d33529094341b6728bf59374832cade6fd9 Mon Sep 17 00:00:00 2001 From: Gloria Date: Thu, 3 Jul 2025 16:10:26 +0800 Subject: [PATCH] Update docs against broken links Signed-off-by: wusongqing --- en/application-dev/ipc/ipc-rpc-development-guideline.md | 4 ++-- en/application-dev/ipc/subscribe-remote-state.md | 2 +- en/application-dev/reference/native-lib/napi.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/en/application-dev/ipc/ipc-rpc-development-guideline.md b/en/application-dev/ipc/ipc-rpc-development-guideline.md index c1572e057e0..6d230c72766 100644 --- a/en/application-dev/ipc/ipc-rpc-development-guideline.md +++ b/en/application-dev/ipc/ipc-rpc-development-guideline.md @@ -168,7 +168,7 @@ Create a ServiceExtensionAbility as follows: let connectId = featureAbility.connectAbility(want, connect); ``` - In the stage model, the [connectServiceExtensionAbility](../reference/apis-ability-kit/js-apis-inner-application-uiAbilityContext.md#connectserviceextensionability) API of **common.UIAbilityContext** is used to connect to an ability. + In the stage model, the [connectServiceExtensionAbility](../reference/apis-ability-kit/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextconnectserviceextensionability) API of **common.UIAbilityContext** is used to connect to an ability. In the sample code provided in this topic, **this.context** is used to obtain **UIAbilityContext**, where **this** indicates a UIAbility instance inherited from **UIAbility**. To use **UIAbilityContext** APIs on pages, see [Obtaining the Context of UIAbility](../application-models/uiability-usage.md#obtaining-the-context-of-uiability). @@ -261,7 +261,7 @@ Create a ServiceExtensionAbility as follows: featureAbility.disconnectAbility(connectId, disconnectCallback); ``` - The **common.UIAbilityContext** provides the [disconnectServiceExtensionAbility](../reference/apis-ability-kit/js-apis-inner-application-uiAbilityContext.md#disconnectserviceextensionability-1) API to disconnect from the service. The **connectId** is saved when the service is connected. + The **common.UIAbilityContext** provides the [disconnectServiceExtensionAbility](../reference/apis-ability-kit/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextdisconnectserviceextensionability-1) API to disconnect from the service. The **connectId** is saved when the service is connected. In the sample code provided in this topic, **this.context** is used to obtain **UIAbilityContext**, where **this** indicates a UIAbility instance inherited from **UIAbility**. To use **UIAbilityContext** APIs on pages, see [Obtaining the Context of UIAbility](../application-models/uiability-usage.md#obtaining-the-context-of-uiability). diff --git a/en/application-dev/ipc/subscribe-remote-state.md b/en/application-dev/ipc/subscribe-remote-state.md index 7585981b36f..8f681ca3ece 100644 --- a/en/application-dev/ipc/subscribe-remote-state.md +++ b/en/application-dev/ipc/subscribe-remote-state.md @@ -112,7 +112,7 @@ When the proxy detects the death of the remote stub object, proxy objects and cl let connectId = featureAbility.connectAbility(want, connect); ``` - In the stage model, the [connectServiceExtensionAbility](../reference/apis-ability-kit/js-apis-inner-application-uiAbilityContext.md#connectserviceextensionability) API of **common.UIAbilityContext** is used to connect to an ability. + In the stage model, the [connectServiceExtensionAbility](../reference/apis-ability-kit/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextconnectserviceextensionability) API of **common.UIAbilityContext** is used to connect to an ability. In the sample code provided in this topic, **this.context** is used to obtain **UIAbilityContext**, where **this** indicates a UIAbility instance inherited from **UIAbility**. To use **UIAbilityContext** APIs on pages, see [Obtaining the Context of UIAbility](../application-models/uiability-usage.md#obtaining-the-context-of-uiability). diff --git a/en/application-dev/reference/native-lib/napi.md b/en/application-dev/reference/native-lib/napi.md index 00a9fd3d220..d6eadd0b9ee 100644 --- a/en/application-dev/reference/native-lib/napi.md +++ b/en/application-dev/reference/native-lib/napi.md @@ -1435,7 +1435,7 @@ Wraps a Node-API instance into an ArkTS object and specifies the instance size. - **native_object**: pointer to the native instance to be wrapped in the ArkTS object. -- **finalize_cb**: (optional) callback to be called when the ArkTS object is destroyed. For details, see [napi_finalize](#napi_finalize callback function description). +- **finalize_cb**: (optional) callback to be called when the ArkTS object is destroyed. For details, see [napi_finalize](#napi_finalize-description). - **async_finalizer**: a Boolean value used to indicate whether to execute the **finalize_cb** callback asynchronously. The value **true** means to execute the callback asynchronously. In this case, thread safety must be ensured. The value **false** means to execute the callback synchronously. @@ -1455,7 +1455,7 @@ Wraps a Node-API instance into an ArkTS object and specifies the instance size. - **napi_pending_exception**: An uncaught exception or an exception occurs during the execution. -#### **napi_finalize** description +#### **napi_finalize** Description ```cpp typedef void (*napi_finalize)(napi_env env, -- Gitee