From 9bb8da1c01a956094161bb93a8ae71b71e653b4a Mon Sep 17 00:00:00 2001 From: wujinhui Date: Fri, 8 Aug 2025 10:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=B9=E6=B3=95=20OH=5FArk?= =?UTF-8?q?UI=5FNodeUtils=5FApplyAttributesFinish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wujinhui --- arkui/ace_engine/native/libace.ndk.json | 4 ++++ arkui/ace_engine/native/native_node.h | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 3c739a283..4a896d640 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -1559,6 +1559,10 @@ "first_introduced": "18", "name": "OH_ArkUI_NodeUtils_MoveTo" }, + { + "first_introduced": "21", + "name": "OH_ArkUI_NativeModule_InvalidateAttributes" + }, { "first_introduced": "15", "name": "OH_ArkUI_NodeUtils_SetCrossLanguageOption" diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 53cfc3bf4..f31fdef17 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -9776,6 +9776,21 @@ int32_t OH_ArkUI_NodeUtils_GetAttachedNodeHandleById(const char* id, ArkUI_NodeH */ int32_t OH_ArkUI_NodeUtils_MoveTo(ArkUI_NodeHandle node, ArkUI_NodeHandle target_parent, int32_t index); +/** + * @brief Triggers node updates in the current frame. + * When node attributes are modified after the current frame's build phase (i.e., after + * the unified processing of dirty nodes), the node updates will be deferred to the next + * frame. This function forces immediate node updates within the current frame to + * ensure rendering effects are applied synchronously. + * + * @param node ArkUI_NodeHandle pointer. + * @return Error code. + * {@link ARKUI_ERROR_CODE_NO_ERROR} Success. + * {@link ARKUI_ERROR_CODE_PARAM_INVALID} Function parameter exception. + * @since 21 + */ +int32_t OH_ArkUI_NativeModule_InvalidateAttributes(ArkUI_NodeHandle node); + /** * @brief Set the cross-language option of the target node handle. * -- Gitee