harmony 鸿蒙ArkUI_NativeGestureAPI_2
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_TextPickerCascadeRangeContent
harmony 鸿蒙ARKUI_TextPickerRangeContent
harmony 鸿蒙ArkUI_AnimateCompleteCallback
harmony 鸿蒙ArkUI_ContextCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦