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
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
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. |