A callback that receives the gesture state throughout the gesture lifecycle.
Configuration options for the long press gesture.
Support
Usage
Basic long press
Custom duration
Require a 2-second press.Visual feedback during press
Notes
- The gesture callback fires for every phase:
"possible","began","changed","ended", and"cancelled". - Use
"began"and"changed"to show press-in-progress feedback, and"ended"to perform the action. - If the finger moves beyond
maximumDistance, the gesture is cancelled.
See Also
- onTapGesture — detects tap gestures
- onDragGesture — tracks drag gestures