GestureDetector.BaseListener

  • This listener receives detection results for discrete gestures such as TAP, LONG_PRESS, and SWIPE gestures.

  • The onGesture public method is called when a gesture is recognized and receives the detected gesture as a parameter.

  • The onGesture method returns true if the gesture was handled.

Added in API level XE12

Receives detection results. This listener receives discrete gestures: TAP, LONG_PRESS SWIPE_UP, SWIPE_LEFT, SWIPE_RIGHT, SWIPE_DOWN

Public Methods
abstract boolean
onGesture(Gesture gesture)

Public Methods

Added in API level XE12

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
  • true if the gesture was handled