Page Summary
-
This listener receives detection results for discrete gestures such as TAP, LONG_PRESS, and SWIPE gestures.
-
The
onGesturepublic method is called when a gesture is recognized and receives the detected gesture as a parameter. -
The
onGesturemethod returnstrueif the gesture was handled.
Receives detection results. This listener receives discrete gestures: TAP, LONG_PRESS SWIPE_UP, SWIPE_LEFT, SWIPE_RIGHT, SWIPE_DOWN
Public Methods
public abstract boolean onGesture (Gesture gesture)
Called when a gesture was recognized.
Only one gesture will be recognized per event sequence.
Parameters
| gesture | the detected gesture |
|---|
Returns
trueif the gesture was handled