diff --git a/arkui/ace_engine/native/drag_and_drop.h b/arkui/ace_engine/native/drag_and_drop.h index 38e49caad1f19bd895f11cf455359a9c4ea2cf44..45e0281ab43646cab9af885e7204008e93ebaa88 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 441a453a2d88c137cce3f2f80f15a49b2b07648f..7dc483f39ac95e482624abef006b6f36ae86cb13 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 9a06d2501eb188250dfafbc73c6fc6948a128173..0420087d16ad8e23cd425ec97f4bef43cfc87620 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; /**