From 11551ce090fe2712dc81a237e6607b03f8ce17aa Mon Sep 17 00:00:00 2001 From: Zenix Date: Fri, 4 Apr 2025 15:31:27 +0800 Subject: [PATCH] go back Signed-off-by: Zenix --- arkui/ace_engine/native/drag_and_drop.h | 43 ------------------------- arkui/ace_engine/native/libace.ndk.json | 12 ------- arkui/ace_engine/native/native_type.h | 5 --- 3 files changed, 60 deletions(-) diff --git a/arkui/ace_engine/native/drag_and_drop.h b/arkui/ace_engine/native/drag_and_drop.h index 38e49caad..45e0281ab 100644 --- a/arkui/ace_engine/native/drag_and_drop.h +++ b/arkui/ace_engine/native/drag_and_drop.h @@ -841,49 +841,6 @@ ArkUI_DragEvent* OH_ArkUI_DragAndDropInfo_GetDragEvent(ArkUI_DragAndDropInfo* dr */ int32_t OH_ArkUI_StartDrag(ArkUI_DragAction* dragAction); -/** - * @brief Request to delay the drop end handling for a while to wait until the process result - * is really conformed by application, the result need to be notified back to system through - * {@link OH_ArkUI_NotifyDragResult} interface. And when all the handling done, the - * {@link OH_ArkUI_NotifyDragEndPendingDone} should be called. - * Please be aware, the maximum pending time is 2 seconds; - * - * @param event Indicates the pointer to an ArkUI_DragEvent object. - * @param requestIdentify Indicates the Identify for the request initiated by this method, it's a number generated - by system automatically, and it's an out parameter too, so one valid address needed. - * @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 a parameter error occurs. - * Returns {@link ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED} if current is not during the drop handing. - * @since 18 - */ -int32_t OH_ArkUI_DragEvent_RequestDragEndPending(ArkUI_DragEvent* event, int32_t* requestIdentify); - -/** - * @brief Notify the system final drag result, the request identify will be checked, it should be the same - * as the one returned by {@link OH_ArkUI_DragEvent_RequestDragEndPending} interface, if it's not, - * the calling will be ignored. - * - * @param requestIdentify The identify returned by {@link OH_ArkUI_DragEvent_RequestDragEndPending} interface. - * @param result Indicates the drag result. - * @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 a parameter error occurs. - * @since 18 - */ -int32_t OH_ArkUI_NotifyDragResult(int32_t requestIdentify, ArkUI_DragResult result); - -/** - * @brief Notify the system all handling done, the drag end pending can be finished. - * - * @param requestIdentify The identify returned by {@link OH_ArkUI_DragEvent_RequestDragEndPending} interface. - * @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 a parameter error occurs. - * @since 18 - */ -int32_t OH_ArkUI_NotifyDragEndPendingDone(int32_t requestIdentify); - #ifdef __cplusplus }; #endif diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 441a453a2..7dc483f39 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -3007,18 +3007,6 @@ "first_introduced": "17", "name": "OH_ArkUI_AxisEvent_GetScrollStep" }, - { - "first_introduced": "18", - "name": "OH_ArkUI_DragEvent_RequestDragEndPending" - }, - { - "first_introduced": "18", - "name": "OH_ArkUI_NotifyDragResult" - }, - { - "first_introduced": "18", - "name": "OH_ArkUI_NotifyDragEndPendingDone" - }, { "first_introduced": "18", "name": "OH_ArkUI_GestureInterrupter_GetUserData" diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 9a06d2501..0420087d1 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -2227,11 +2227,6 @@ typedef enum { * @since 18 */ ARKUI_ERROR_CODE_RECOGNIZER_TYPE_NOT_SUPPORTED = 180102, - /** - * @error operation is not allowed for current drag drop pharse. - * @since 18 - */ - ARKUI_ERROR_CODE_DRAG_DROP_OPERATION_NOT_ALLOWED = 190004, } ArkUI_ErrorCode; /** -- Gitee