diff --git a/arkui/ace_engine/native/native_gesture.h b/arkui/ace_engine/native/native_gesture.h index 42b37aa9c4b2fec751befab632b234d9ff24be14..72eba9a440bb3c7c8edef3b0b4c2efbe88d60f08 100644 --- a/arkui/ace_engine/native/native_gesture.h +++ b/arkui/ace_engine/native/native_gesture.h @@ -912,6 +912,29 @@ typedef struct { int32_t countNum, int32_t fingersNum, double distanceThreshold); } ArkUI_NativeGestureAPI_1; +/** + * @brief Defines the gesture APIs. + * + * @since 16 + */ +typedef struct { + ArkUI_NativeGestureAPI_1* gestureApi1; + + /** + * @brief Sets the callback function for gesture interrupt event. + * + * @param node Indicates the ArkUI node for which the callback of gesture interrupt event is to be set. + * @param userData Indicates the custom data. + * @param interrupter Indicates gesture interrupt event. info returns the data of the + * gesture interrupt event; interrupter returns the pointer to the interrupter + * that requires interrupt. + * @return Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if success. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter exception occurs. + */ + int32_t (*setGestureInterrupterToNode)(ArkUI_NodeHandle node, void* userData, + ArkUI_GestureInterruptResult (*interrupter)(ArkUI_GestureInterruptInfo* info)); +} ArkUI_NativeGestureAPI_2; + #ifdef __cplusplus }; #endif