From 2260f4b045df3f94d3ec615e6d304d55be96797e Mon Sep 17 00:00:00 2001 From: wangyang2022 Date: Thu, 28 Aug 2025 03:13:14 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80capi=E5=B9=B6=E8=A1=8C?= =?UTF-8?q?=E5=8C=96API=20Signed-off-by:=20wangyang2022=20=20Change-Id:=20I1b2f80a006380bec64d40b23f988e3f48c8d64?= =?UTF-8?q?a8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arkui/ace_engine/native/libace.ndk.json | 12 ------- arkui/ace_engine/native/native_interface.h | 6 ---- arkui/ace_engine/native/native_node.h | 40 ---------------------- arkui/ace_engine/native/native_type.h | 5 --- 4 files changed, 63 deletions(-) diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 3c739a283d0..c80fb73134e 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -4050,17 +4050,5 @@ { "first_introduced": "20", "name": "OH_ArkUI_RenderNodeUtils_DisposeRenderNodeClipOption" - }, - { - "first_introduced": "20", - "name": "OH_ArkUI_PostAsyncUITask" - }, - { - "first_introduced": "20", - "name": "OH_ArkUI_PostUITask" - }, - { - "first_introduced": "20", - "name": "OH_ArkUI_PostUITaskAndWait" } ] \ No newline at end of file diff --git a/arkui/ace_engine/native/native_interface.h b/arkui/ace_engine/native/native_interface.h index 4c340577951..64cae7e06ea 100644 --- a/arkui/ace_engine/native/native_interface.h +++ b/arkui/ace_engine/native/native_interface.h @@ -57,12 +57,6 @@ typedef enum { ARKUI_NATIVE_GESTURE, /** API related to animations. For details, see the struct definition in .*/ ARKUI_NATIVE_ANIMATE, - /** - * API related to supported multi thread UI components. - * For details, see the struct definition in . - * @since 20 - */ - ARKUI_MULTI_THREAD_NATIVE_NODE, } ArkUI_NativeAPIVariantKind; /** diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 5feb3bc7bb8..07a9708d9ff 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -10000,46 +10000,6 @@ int32_t OH_ArkUI_NodeUtils_GetNodeUniqueId(ArkUI_NodeHandle node, int32_t* uniqu int32_t OH_ArkUI_SetForceDarkConfig(ArkUI_ContextHandle uiContext, bool forceDark, ArkUI_NodeType nodeType, uint32_t (*colorInvertFunc)(uint32_t color)); -/** - * @brief Post UI task to background threads. - * - * @param context UIContext pointer of the page where the UI task located. - * @param asyncUITaskData Parameter of asyncUITask and onFinish. - * @param asyncUITask Function executed by a background thread. - * @param onFinish Function executed by UI thread after async UI task is executed. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if context or asyncUITask is nullptr. - * @since 20 - */ -int32_t OH_ArkUI_PostAsyncUITask(ArkUI_ContextHandle context, void* asyncUITaskData, - void (*asyncUITask)(void* asyncUITaskData), void (*onFinish)(void* asyncUITaskData)); - -/** - * @brief Post UI task to UI thread. - * - * @param context UIContext pointer of the page where the UI task located. - * @param taskData Parameter of task. - * @param task Function executed by UI thread. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if context or task is nullptr. - * @since 20 - */ -int32_t OH_ArkUI_PostUITask(ArkUI_ContextHandle context, void* taskData, void (*task)(void* taskData)); - -/** - * @brief Post UI task to UI thread and wait until UI task finished. - * - * @param context UIContext pointer of the page where the UI task located. - * @param taskData Parameter of task. - * @param task Function executed by UI thread. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if context or task is nullptr. - * @since 20 - */ -int32_t OH_ArkUI_PostUITaskAndWait(ArkUI_ContextHandle context, void* taskData, void (*task)(void* taskData)); #ifdef __cplusplus }; #endif diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 3bfa0c36dc2..5898260f8d5 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -2266,11 +2266,6 @@ typedef enum { * @since 15 */ ARKUI_ERROR_CODE_NODE_NOT_ON_MAIN_TREE = 106203, - /** - * @error The node is running on invalid thread. - * @since 20 - */ - ARKUI_ERROR_CODE_NODE_ON_INVALID_THREAD = 106204, /** * @error Force dark config is invalid. * @since 20 -- Gitee