public class

MapGestureDetector

extends Object
java.lang.Object
   ↳ com.esri.android.map.MapGestureDetector

Class Overview

The MapGestureDetector class is used to detects various gestures and events using the supplied MotionEvents. The MapGestureDetector.OnGestureListener callback will notify users when a particular motion event has occurred on the MapView. This class should only be used with MotionEvents reported via touch (don't use for trackball) events. To use this class:

Summary

Nested Classes
interface MapGestureDetector.OnGestureListener The listener that is used to notify when gestures occur. 
Public Constructors
MapGestureDetector(Context context, MapGestureDetector.OnGestureListener listener)
Creates a MapGestureDetector with the supplied listener.
Public Methods
boolean onTouchEvent(MotionEvent motionevent)
Analyzes the given motion event and, if applicable, it triggers the appropriate callbacks on the.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MapGestureDetector (Context context, MapGestureDetector.OnGestureListener listener)

Creates a MapGestureDetector with the supplied listener. You may only use this constructor from a UI thread (this is usually the case).

Parameters
context the application's context
listener the listener invoked for all the callbacks, this object must not be populated (NOT null).

Public Methods

public boolean onTouchEvent (MotionEvent motionevent)

Analyzes the given motion event and, if applicable, it triggers the appropriate callbacks on the.

Parameters
motionevent The current motion event.
Returns