public static interface

MapGestureDetector.OnGestureListener

com.esri.android.map.MapGestureDetector.OnGestureListener
Known Indirect Subclasses

Class Overview

The listener that is used to notify when gestures occur. If you want to listen for all the different gestures then implement this interface.

Summary

Public Methods
abstract boolean onDoubleTap(MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs.
abstract boolean onDragPointerMove(MotionEvent from, MotionEvent to)
Notified when a part of a single touch drag gesture event occurs.
abstract boolean onDragPointerUp(MotionEvent from, MotionEvent to)
Notified when a part of a single-touch-drag gesture event occurs.
abstract void onLongPress(MotionEvent point)
Notified when a long-press gesture occurs.
abstract void onMultiPointersSingleTap(MotionEvent event)
Notified when a two-pointers-single-tap gesture occurs.
abstract boolean onPinchPointersDown(MotionEvent event)
Notified when a part of a pinch gesture occurs.
abstract boolean onPinchPointersMove(MotionEvent event)
Notified when a part of a pinch gesture occurs.
abstract boolean onPinchPointersUp(MotionEvent event)
Notified when a part of a pinch gesture occurs.
abstract boolean onSingleTap(MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs.

Public Methods

public abstract boolean onDoubleTap (MotionEvent point)

Notified when a single-pointer-double-tap gesture occurs. The motion event contains the final movement of the gesture.

Returns
  • True if the listener has consumed the event, false otherwise.

public abstract boolean onDragPointerMove (MotionEvent from, MotionEvent to)

Notified when a part of a single touch drag gesture event occurs. The touch pointer is moving from the "from" point to the "to" point.

Parameters
from The MotionEvent object containing full information about the "from" point.
to The MotionEvent object containing full information about the "to" point.
Returns
  • True if the listener has consumed the event, false otherwise.

public abstract boolean onDragPointerUp (MotionEvent from, MotionEvent to)

Notified when a part of a single-touch-drag gesture event occurs. The drag gesture has finished. The motion events contain the final movement of the gesture.

Parameters
from The MotionEvent object containing full information about the "from" point.
to The MotionEvent object containing full information about the "to" point.
Returns
  • True if the listener has consumed the event, false otherwise.

public abstract void onLongPress (MotionEvent point)

Notified when a long-press gesture occurs. The motion event contains the initial movement of the gesture.

Parameters
point The initial on down motion event that started the longpress.

public abstract void onMultiPointersSingleTap (MotionEvent event)

Notified when a two-pointers-single-tap gesture occurs. The motion event contains the final movement of the gesture.

public abstract boolean onPinchPointersDown (MotionEvent event)

Notified when a part of a pinch gesture occurs. The gesture has started as a two pointers down motion.

Returns
  • True if the listener has consumed the event, false otherwise.

public abstract boolean onPinchPointersMove (MotionEvent event)

Notified when a part of a pinch gesture occurs. The two pointers of the gesture have moved. To get the move pointers you can:

float x1 = event.getX(0), y1 = event.getY(0), x2 = event.getX(1), y2 = event.getY(1);

Returns
  • True if the listener has consumed the event, false otherwise.

public abstract boolean onPinchPointersUp (MotionEvent event)

Notified when a part of a pinch gesture occurs. The pinch gesture has finished. The motion event contains the final movement of the gesture.

Returns
  • True if the listener has consumed the event, false otherwise.

public abstract boolean onSingleTap (MotionEvent point)

Notified when a single-pointer-double-tap gesture occurs. The motion event contains the initial movement of the gesture.

Returns
  • True if the listener has consumed the event, false otherwise.