!1102 【基础能力】Drag CAPI 新增GetDropOperation接口

Merge pull request !1102 from Zhang Jinyu/newadd
This commit is contained in:
openharmony_ci 2024-08-02 08:05:12 +00:00 committed by Gitee
commit 7b0b7dcb71
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 0 deletions

View File

@ -298,6 +298,19 @@ int32_t OH_ArkUI_DragEvent_GetDataTypes(
*/
int32_t OH_ArkUI_DragEvent_GetDragResult(ArkUI_DragEvent* event, ArkUI_DragResult* result);
/**
* @brief Obtains the drop operation from a drag event.
*
* @param event Indicates the pointer to an <b>ArkUI_DragEvent</b> object.
* @param operation Indicates the drop operation which the data receiver set.
* @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.
* Possible causes: 1. The given parameters are null or the given event is not a valid DragEvent.
* @since 12
*/
int32_t OH_ArkUI_DragEvent_GetDropOperation(ArkUI_DragEvent* event, ArkUI_DropOperation* operation);
/**
* @brief Obtains the X coordinate of the touch point for a drag preview from a drag event.
*

View File

@ -1799,6 +1799,10 @@
"first_introduced": "12",
"name": "OH_ArkUI_DragEvent_GetDragResult"
},
{
"first_introduced": "12",
"name": "OH_ArkUI_DragEvent_GetDropOperation"
},
{
"first_introduced": "12",
"name": "OH_ArkUI_DragEvent_GetPreviewTouchPointX"