harmony 鸿蒙ArkUI_NativeGestureAPI_2

  • 2025-06-12
  • 浏览 (3)

ArkUI_NativeGestureAPI_2

Overview

Defines the gesture APIs.

Since: 18

Related module: ArkUI_NativeModule

Summary

Member Variables

Name Description
ArkUI_NativeGestureAPI_1* gestureApi1; Pointer to the ArkUI_NativeGestureAPI_1 struct.
int32_t(* setGestureInterrupterToNode )(ArkUI_NodeHandle node, void* userData, ArkUI_GestureInterruptResult(*interrupter)(ArkUI_GestureInterruptInfo *info)) Sets the callback for gesture interruption events.

Member Variable Description

setGestureInterrupterToNode

int32_t(* ArkUI_NativeGestureAPI_1::setGestureInterrupterToNode) (ArkUI_NodeHandle node, void* userData, ArkUI_GestureInterruptResult(*interrupter)(ArkUI_GestureInterruptInfo *info))

Description

Sets the callback for gesture interruption events.

Since: 18

Parameters

Name Description
node Node for which you want to set a gesture interruption callback.
userData Custom data.
interrupter Gesture interruption callback to set.
If GESTURE_INTERRUPT_RESULT_CONTINUE is returned, the gesture recognition process continues.
If GESTURE_INTERRUPT_RESULT_REJECT is returned, the gesture recognition process is paused.

Returns

Returns 0 if the operation is successful. Returns 401 if a parameter error occurs.

gestureApi1

ArkUI_NativeGestureAPI_1* gestureApi1

Description

Pointer to the ArkUI_NativeGestureAPI_1 struct.

Since: 18

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent

harmony 鸿蒙ARKUI_TextPickerRangeContent

harmony 鸿蒙ArkUI_AnimateCompleteCallback

harmony 鸿蒙ArkUI_AttributeItem

harmony 鸿蒙ArkUI_ColorStop

harmony 鸿蒙ArkUI_ContextCallback

harmony 鸿蒙ArkUI_EventModule

harmony 鸿蒙ArkUI_ExpectedFrameRateRange

harmony 鸿蒙ArkUI_IntOffset

0  赞