From 68f3cb0b9e2403dfe7efaa8c611d726fd0a3cdeb Mon Sep 17 00:00:00 2001 From: wangweiyuan Date: Fri, 16 May 2025 15:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=80=9A=E7=94=A8=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E3=80=91=E6=94=AF=E6=8C=81=E5=BA=94=E7=94=A8=E5=9C=A8=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E4=BA=8B=E4=BB=B6=E4=B8=AD=E8=8E=B7=E5=8F=96=E6=8B=96?= =?UTF-8?q?=E8=B5=B7=E6=96=B9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangweiyuan Change-Id: I13d1ade358a2df655b7818b1f72bcbbedac49644 --- arkui/ace_engine/native/drag_and_drop.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arkui/ace_engine/native/drag_and_drop.h b/arkui/ace_engine/native/drag_and_drop.h index 10137f670ab..e47439eca26 100644 --- a/arkui/ace_engine/native/drag_and_drop.h +++ b/arkui/ace_engine/native/drag_and_drop.h @@ -886,6 +886,31 @@ int32_t OH_ArkUI_NotifyDragResult(int32_t requestIdentify, ArkUI_DragResult resu */ int32_t OH_ArkUI_NotifyDragEndPendingDone(int32_t requestIdentify); +/** + * @brief Obtains the bundle name of the drag source application. + * The caller must provide a character array with a minimum length of 128 characters to store the bundle name. + * + * @param event Pointer to the ArkUI_DragEvent object. + * @param bundleName Character array to store the bundle name string, with a length of at least 128 characters. + * @param length Length of the character array to store the bundle name string. The minimum length is 128 characters. + * @return Result code. + * {@link ARKUI_ERROR_CODE_NO_ERROR} is returned if the operation is successful. + * {@link ARKUI_ERROR_CODE_PARAM_INVALID} is returned if a parameter error occurs. + * @since 20 + */ +ArkUI_ErrorCode OH_ArkUI_DragEvent_GetDragSource(ArkUI_DragEvent* event, char *bundleName, int32_t length); + +/** + * @brief Checks whether the current drag operation is a cross-device drag. + * + * @param event Pointer to the ArkUI_DragEvent object. + * @param isRemote Pointer to a boolean variable to store the result. + * @return Result code. + * {@link ARKUI_ERROR_CODE_NO_ERROR} is returned if the operation is successful. + * {@link ARKUI_ERROR_CODE_PARAM_INVALID} is returned if a parameter error occurs. + * @since 20 + */ +ArkUI_ErrorCode OH_ArkUI_DragEvent_IsRemote(ArkUI_DragEvent* event, bool* isRemote); #ifdef __cplusplus }; #endif -- Gitee