diff --git a/zh-cn/native_sdk/arkui/ace_engine/native/native_interface_xcomponent.h b/zh-cn/native_sdk/arkui/ace_engine/native/native_interface_xcomponent.h index d0aedb7d0a7342a6583a90791448d7fc991e0409..4d5e2fa606606ebf93abe71649a5679bab5dca1d 100644 --- a/zh-cn/native_sdk/arkui/ace_engine/native/native_interface_xcomponent.h +++ b/zh-cn/native_sdk/arkui/ace_engine/native/native_interface_xcomponent.h @@ -876,6 +876,8 @@ int32_t OH_NativeXComponent_UnregisterOnFrameCallback(OH_NativeXComponent* compo * 返回 {@link ARKUI_ERROR_CODE_PARAM_INVALID} - 参数异常。 * * @since 12 + * @deprecated since 20 + * @useinstead {@link OH_ArkUI_NodeContent_AddNode} */ int32_t OH_NativeXComponent_AttachNativeRootNode(OH_NativeXComponent* component, ArkUI_NodeHandle root); @@ -889,6 +891,8 @@ int32_t OH_NativeXComponent_AttachNativeRootNode(OH_NativeXComponent* component, * 返回 {@link ARKUI_ERROR_CODE_PARAM_INVALID} - 参数异常。 * * @since 12 + * @deprecated since 20 + * @useinstead {@link OH_ArkUI_NodeContent_RemoveNode} */ int32_t OH_NativeXComponent_DetachNativeRootNode(OH_NativeXComponent* component, ArkUI_NodeHandle root);