Java android.view ScaleGestureDetector fields, constructors, methods, implement or subclass

Example usage for Java android.view ScaleGestureDetector fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view ScaleGestureDetector.

The text is from its open source code.

Constructor

ScaleGestureDetector(Context context, OnScaleGestureListener listener)
Creates a ScaleGestureDetector with the supplied listener.
ScaleGestureDetector(Context context, OnScaleGestureListener listener, Handler handler)
Creates a ScaleGestureDetector with the supplied listener.

Method

floatgetCurrentSpan()
Return the average distance between each of the pointers forming the gesture in progress through the focal point.
floatgetFocusX()
Get the X coordinate of the current gesture's focal point.
floatgetFocusY()
Get the Y coordinate of the current gesture's focal point.
floatgetPreviousSpan()
Return the previous average distance between each of the pointers forming the gesture in progress through the focal point.
floatgetScaleFactor()
Return the scaling factor from the previous scale event to the current event.
longgetTimeDelta()
Return the time difference in milliseconds between the previous accepted scaling event and the current scaling event.
booleanisInProgress()
Returns true if a scale gesture is in progress.
booleanonTouchEvent(MotionEvent event)
Accepts MotionEvents and dispatches events to a OnScaleGestureListener when appropriate.