Public Member Functions | |
boolean | onRotationBegin (final MapGesturesDetector gestureDetector) |
void | onRotation (final MapGesturesDetector gestureDetector) |
void | onRotationEnd (final MapGesturesDetector gestureDetector) |
boolean | onMapMove (final MotionEvent e1, final MotionEvent e2, final float distanceX, final float distanceY) |
boolean | onMapMoveDone () |
boolean | onMapFling (float velocityX, float velocityY) |
boolean | onMapClicked (final MotionEvent e, final boolean isTwoFingers) |
boolean | onMapLongClicked (final MotionEvent e) |
boolean | onScale (final MapGesturesDetector gestureDetector) |
boolean | onScaleBegin (final MapGesturesDetector gestureDetector) |
void | onScaleEnd (final MapGesturesDetector gestureDetector, float scaleVelocity) |
void | onTilt (final MapGesturesDetector detector) |
boolean | onTiltBegin (final MapGesturesDetector detector) |
void | onTiltEnd (final MapGesturesDetector detector) |
boolean | onDoubleTap (final MotionEvent e, final boolean isTwoFingers) |
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onDoubleTap | ( | final MotionEvent | e, |
final boolean | isTwoFingers | ||
) |
Notified when a double-tap occurs.
e | motion event object of last MotionEvent#ACTION_UP event |
isTwoFingers | whether it is single finger or two-finger double-tap |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onMapClicked | ( | final MotionEvent | e, |
final boolean | isTwoFingers | ||
) |
Notified when a single-tap occurs.
This will only be called after the detector is confident that the user's first tap is not followed by a second tap leading to a double-tap gesture.
e | The down motion event of the single-tap. |
isTwoFingers | whether it is single finger or two-finger tap |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onMapFling | ( | float | velocityX, |
float | velocityY | ||
) |
Notified of a fling event when it occurs.
velocityX | computed velocityX to finish the map move with |
velocityY | computed velocityX to finish the map move with |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onMapLongClicked | ( | final MotionEvent | e | ) |
Notified when a long click occurs.
e | The down motion event of the long click. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onMapMove | ( | final MotionEvent | e1, |
final MotionEvent | e2, | ||
final float | distanceX, | ||
final float | distanceY | ||
) |
Notified when a move occurs with the initial on down MotionEvent and the current move MotionEvent. The distance in x and y is also supplied for convenience.
e1 | The first down motion event that started the scrolling. |
e2 | The move motion event that triggered the current onScroll. |
distanceX | The distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1
e2
|
distanceY | The distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1
e2
|
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onMapMoveDone | ( | ) |
Notified when a move is finished. The event will occur only when map move was with animation.
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
void com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onRotation | ( | final MapGesturesDetector | detector | ) |
Responds to rotation events for a gesture in progress. Reported by pointer motion.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onRotationBegin | ( | final MapGesturesDetector | detector | ) |
Responds to the beginning of a rotation gesture.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
false
will ignore the whole gesture. Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
void com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onRotationEnd | ( | final MapGesturesDetector | detector | ) |
Responds to the end of a rotation gesture.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onScale | ( | final MapGesturesDetector | detector | ) |
Responds to scaling events for a gesture in progress. Reported by pointer motion.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onScaleBegin | ( | final MapGesturesDetector | detector | ) |
Responds to the beginning of a scaling gesture. Reported by new pointers going down.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
void com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onScaleEnd | ( | final MapGesturesDetector | detector, |
float | scaleVelocity | ||
) |
Responds to the end of a scale gesture. Reported by existing pointers going up.
Once a scale has ended, ScaleGestureDetector#getFocusX() and ScaleGestureDetector#getFocusY() will return focal point of the pointers remaining on the screen.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
void com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onTilt | ( | final MapGesturesDetector | detector | ) |
Responds to tilt events for a gesture in progress. Reported by pointer motion.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onTiltBegin | ( | final MapGesturesDetector | detector | ) |
Responds to the beginning of a tilt gesture.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
false
will ignore the whole gesture. Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.
void com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onTiltEnd | ( | final MapGesturesDetector | detector | ) |
Responds to the end of a tilt gesture.
detector | The detector reporting the event - use this to retrieve extended info about event state. |
Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.