com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter Class Referenceabstract
Inheritance diagram for com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter:
Collaboration diagram for com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter:

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)
 

Member Function Documentation

◆ onDoubleTap()

boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onDoubleTap ( final MotionEvent  e,
final boolean  isTwoFingers 
)

Notified when a double-tap occurs.

Parameters
emotion event object of last MotionEvent#ACTION_UP event
isTwoFingerswhether it is single finger or two-finger double-tap
Returns
true if the event is consumed, else false

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onMapClicked()

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.

Parameters
eThe down motion event of the single-tap.
isTwoFingerswhether it is single finger or two-finger tap
Returns
true if the event is consumed, else false

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onMapFling()

boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onMapFling ( float  velocityX,
float  velocityY 
)

Notified of a fling event when it occurs.

Parameters
velocityXcomputed velocityX to finish the map move with
velocityYcomputed velocityX to finish the map move with
Returns
true if the event is consumed, else false

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onMapLongClicked()

boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onMapLongClicked ( final MotionEvent  e)

Notified when a long click occurs.

Parameters
eThe down motion event of the long click.
Returns
true if the event is consumed, else false

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onMapMove()

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.

Parameters
e1The first down motion event that started the scrolling.
e2The move motion event that triggered the current onScroll.
distanceXThe distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between
e1
and
e2
.
distanceYThe distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between
e1
and
e2
.
Returns
true if the event is consumed, else false

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onMapMoveDone()

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.

Returns
true if the event is consumed, else false

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onRotation()

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.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onRotationBegin()

boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onRotationBegin ( final MapGesturesDetector  detector)

Responds to the beginning of a rotation gesture.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.
Returns
Whether or not the detector should continue recognizing this gesture. Returning false will ignore the whole gesture.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onRotationEnd()

void com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onRotationEnd ( final MapGesturesDetector  detector)

Responds to the end of a rotation gesture.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onScale()

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.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.
Returns
Whether or not the detector should consider this event as handled. If an event was not handled, the detector will continue to accumulate movement until an event is handled. This can be useful if an application, for example, only wants to update scaling factors if the change is greater than 0.01.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onScaleBegin()

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.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.
Returns
Whether or not the detector should continue recognizing this gesture. For example, if a gesture is beginning with a focal point outside of a region where it makes sense, onScaleBegin() may return false to ignore the rest of the gesture.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onScaleEnd()

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.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onTilt()

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.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onTiltBegin()

boolean com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onTiltBegin ( final MapGesturesDetector  detector)

Responds to the beginning of a tilt gesture.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.
Returns
Whether or not the detector should continue recognizing this gesture. Returning false will ignore the whole gesture.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.

◆ onTiltEnd()

void com.sygic.sdk.map.mapgesturesdetector.listener.MapGestureAdapter.onTiltEnd ( final MapGesturesDetector  detector)

Responds to the end of a tilt gesture.

Parameters
detectorThe detector reporting the event - use this to retrieve extended info about event state.

Implements com.sygic.sdk.map.mapgesturesdetector.MapGesturesDetector.MapGestureListener.


The documentation for this class was generated from the following file: