mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 23:00:30 +00:00
!1102 【基础能力】Drag CAPI 新增GetDropOperation接口
Merge pull request !1102 from Zhang Jinyu/newadd
This commit is contained in:
commit
7b0b7dcb71
@ -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.
|
||||
*
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user