Module native_gesture

Source
Available on crate feature api-12 only.

Structs§

ArkUI_GestureDirection
Enumerates gesture directions.
ArkUI_GestureEvent
ArkUI_GestureEventActionType
Enumerates gesture event types.
ArkUI_GestureEventTargetInfo
ArkUI_GestureInterruptInfo
ArkUI_GestureInterruptResult
Enumerates gesture interruption results.
ArkUI_GestureMask
Enumerates gesture masking modes.
ArkUI_GesturePriority
Enumerates gesture event modes.
ArkUI_GestureRecognizer
ArkUI_GestureRecognizerState
Enumerates the gesture recognizer states.
ArkUI_GestureRecognizerType
Enumerates gesture types.
ArkUI_GroupGestureMode
Enumerates gesture group modes.
ArkUI_NativeGestureAPI_1
Defines the gesture APIs.
ArkUI_ParallelInnerGestureEvent

Functions§

OH_ArkUI_GestureEventTargetInfo_IsScrollBegin
Obtains whether this scroll container is scrolled to the top.
OH_ArkUI_GestureEventTargetInfo_IsScrollEnd
Obtains whether this scroll container is scrolled to the bottom.
OH_ArkUI_GestureEvent_GetActionType
Obtains the gesture event type.
OH_ArkUI_GestureEvent_GetRawInputEvent
Obtains gesture input.
OH_ArkUI_GestureInterruptInfo_GetGestureEvent
Obtains the pointer to the interrupted gesture event.
OH_ArkUI_GestureInterruptInfo_GetRecognizer
Obtains the pointer to interrupted gesture recognizer.
OH_ArkUI_GestureInterruptInfo_GetSystemFlag
Checks whether a gesture is a built-in gesture of the component.
OH_ArkUI_GestureInterruptInfo_GetSystemRecognizerType
Obtains the type of the system gesture to trigger.
OH_ArkUI_GetGestureBindNodeId
Obtains the ID of the component linked to a gesture recognizer.
OH_ArkUI_GetGestureEventTargetInfo
Obtains the information about a gesture event target.
OH_ArkUI_GetGestureRecognizerEnabled
Obtains the enabled state of a gesture recognizer.
OH_ArkUI_GetGestureRecognizerState
Obtains the state of a gesture recognizer.
OH_ArkUI_GetGestureTag
Obtains the tag of a gesture recognizer.
OH_ArkUI_GetPanGestureDirectionMask
Obtains the direction of a pan gesture.
OH_ArkUI_GetResponseRecognizersFromInterruptInfo
Obtains information about a gesture response chain.
OH_ArkUI_IsBuiltInGesture
Obtains whether a gesture is a built-in gesture.
OH_ArkUI_IsGestureRecognizerValid
Obtains whether a gesture recognizer is valid.
OH_ArkUI_LongPress_GetRepeatCount
Obtains the number of times that a long press gesture is triggered periodically.
OH_ArkUI_PanGesture_GetOffsetX
Obtains the relative offset of a pan gesture along the x-axis.
OH_ArkUI_PanGesture_GetOffsetY
Obtains the relative offset of a pan gesture along the y-axis.
OH_ArkUI_PanGesture_GetVelocity
Obtains the velocity of a pan gesture along the main axis.
OH_ArkUI_PanGesture_GetVelocityX
Obtains the velocity of a pan gesture along the x-axis.
OH_ArkUI_PanGesture_GetVelocityY
Obtains the velocity of a pan gesture along the y-axis.
OH_ArkUI_ParallelInnerGestureEvent_GetConflictRecognizers
Obtains the conflicting gesture recognizers in a parallel internal gesture event.
OH_ArkUI_ParallelInnerGestureEvent_GetCurrentRecognizer
Obtains the current gesture recognizer in a parallel internal gesture event.
OH_ArkUI_ParallelInnerGestureEvent_GetUserData
Obtains custom data in the parallel internal gesture event.
OH_ArkUI_PinchGesture_GetCenterX
Obtains the X coordinate of the center of the pinch gesture, in vp, relative to the upper left corner of the current component.
OH_ArkUI_PinchGesture_GetCenterY
Obtains the Y coordinate of the center of the pinch gesture, in vp, relative to the upper left corner of the current component.
OH_ArkUI_PinchGesture_GetScale
Obtains the scale ratio of a pinch gesture.
OH_ArkUI_RotationGesture_GetAngle
Obtains the angle information of a rotation gesture.
OH_ArkUI_SetArkUIGestureRecognizerDisposeNotify
Sets a callback function for notifying gesture recognizer destruction.
OH_ArkUI_SetGestureRecognizerEnabled
Sets the enabled state of a gesture recognizer.
OH_ArkUI_SwipeGesture_GetAngle
Obtains the angle information of the swipe gesture.
OH_ArkUI_SwipeGesture_GetVelocity
Obtains the average velocity of all fingers used in the swipe gesture.

Type Aliases§

ArkUI_GestureDirectionMask
Defines a set of gesture directions.
ArkUI_GestureEventActionTypeMask
Defines a set of gesture event types.
ArkUI_GestureRecognizerDisposeNotifyCallback
Defines a callback function for notifying gesture recognizer destruction.
ArkUI_GestureRecognizerHandle
Defines the gesture recognizer handle.
ArkUI_GestureRecognizerHandleArray
Defines the gesture recognizer handle array.