public static interface

MapGestureDetector.OnGestureListener

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

This interface is deprecated.
at 10.2.4 - for internal use only.

Class Overview

The listener that is used to notify when gestures occur.

Summary

Public Methods
abstract boolean onDoubleTap(MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs.
abstract boolean onDoubleTapDrag(MotionEvent from, MotionEvent to)
Notified when part of a double-tap-then-drag gesture occurs.
abstract boolean onDoubleTapDragUp(MotionEvent up)
Notified when the end of a double-tap-then-drag 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 boolean onFling(MotionEvent from, MotionEvent to, float velocityX, float velocityY)
Notified when a fling gesture occurs.
abstract void onLongPress(MotionEvent point)
Notified when a long-press gesture occurs.
abstract boolean onLongPressUp(MotionEvent point)
Notified when a long-press gesture has finished.
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.

Parameters
point MotionEvent: MotionEvent
Returns
boolean True if the listener has consumed the event, false otherwise.

public abstract boolean onDoubleTapDrag (MotionEvent from, MotionEvent to)

Notified when part of a double-tap-then-drag gesture occurs. This occurs when, rather than immediately lifting the second pointer on a double tap, the pointer is instead dragged or moved. Note that if you override this method and want double-tap-drag zooming to continue to work, call super.onDoubleTapDrag(from, to) after handling the event.

Parameters
from MotionEvent: The original down event of the double tap
to MotionEvent: The current position of the pointer
Returns
boolean true if the event is consumed by the listener, otherwise false

public abstract boolean onDoubleTapDragUp (MotionEvent up)

Notified when the end of a double-tap-then-drag gesture occurs. This is triggered when the pointer is lifted from the second tap/drag. Note that if you override this method and want double-tap-drag zooming to continue to work, call super.onDoubleTapDragUp(up) after handling the event.

Parameters
up MotionEvent: The motion event corresponding to the pointer being lifted
Returns
boolean true if the event is consumed by the listener, otherwise false

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 MotionEvent: The MotionEvent object containing full information about the "from" point.
to MotionEvent: The MotionEvent object containing full information about the "to" point.
Returns
boolean 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 MotionEvent: The MotionEvent object containing full information about the "from" point.
to MotionEvent: The MotionEvent object containing full information about the "to" point.
Returns
boolean True if the listener has consumed the event, false otherwise.

public abstract boolean onFling (MotionEvent from, MotionEvent to, float velocityX, float velocityY)

Notified when a fling gesture occurs.

Parameters
from MotionEvent: MotionEvent
to MotionEvent: MotionEvent
velocityX float: float
velocityY float: float
Returns
boolean boolean true if the event is consumed by listener. since 10.2.2

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 MotionEvent: The initial on down motion event that started the longpress.

public abstract boolean onLongPressUp (MotionEvent point)

Notified when a long-press gesture has finished. The motion event contains the final movement of the gesture.

Parameters
point MotionEvent: The final motion event that finished the longpress.
Returns
boolean true if the listener has consumed the event, false otherwise.

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.

Parameters
event MotionEvent: MotionEvent

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.

Parameters
event MotionEvent: MotionEvent
Returns
boolean 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);

Parameters
event MotionEvent: MotionEvent
Returns
boolean 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.

Parameters
event MotionEvent: MotionEvent
Returns
boolean 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.

Parameters
point MotionEvent: MotionEvent
Returns
boolean True if the listener has consumed the event, false otherwise.