-
public interface ScaleGestureDetector.OnScaleGestureListenerThe listener for receiving notifications when gestures occur.If you want to listen for all the different gestures then implementthis interface. If you only want to listen for a subset it mightbe easier to extend SimpleOnScaleGestureListener.An application will receive events in the following order:
- One onScaleBegin
- Zero or more onScale
- One onScaleEnd
-
-
Method Summary
Modifier and Type Method Description abstract booleanonScale(ScaleGestureDetector detector)Responds to scaling events for a gesture in progress.Reported by pointer motion. abstract booleanonScaleBegin(ScaleGestureDetector detector)Responds to the beginning of a scaling gesture. abstract voidonScaleEnd(ScaleGestureDetector detector)Responds to the end of a scale gesture. -
-
Method Detail
-
onScale
abstract boolean onScale(ScaleGestureDetector detector)
Responds to scaling events for a gesture in progress.Reported by pointer motion.
- Parameters:
detector- The detector reporting the event - use this toretrieve extended info about event state.
-
onScaleBegin
abstract boolean onScaleBegin(ScaleGestureDetector detector)
Responds to the beginning of a scaling gesture. Reported bynew pointers going down.
- Parameters:
detector- The detector reporting the event - use this toretrieve extended info about event state.
-
onScaleEnd
abstract void onScaleEnd(ScaleGestureDetector detector)
Responds to the end of a scale gesture. Reported by existingpointers going up.Once a scale has ended, getFocusX and getFocusY will return focal pointof the pointers remaining on the screen.
- Parameters:
detector- The detector reporting the event - use this toretrieve extended info about event state.
-
-
-
-