Class of android.view · ScaleGestureDetector.java · Android's reference
public class ScaleGestureDetector
Finds pinch gestures: the span of the pointers around their focus. Quick scale, a double tap and then a vertical drag, scales with one pointer (the mouse): a drag down makes the span larger.
public ScaleGestureDetector(Context context, OnScaleGestureListener listener) sourcepublic ScaleGestureDetector(Context context, OnScaleGestureListener listener, Handler handler) sourcepublic boolean onTouchEvent(MotionEvent event) sourcepublic void setQuickScaleEnabled(boolean scales) sourcepublic boolean isQuickScaleEnabled() sourcepublic void setStylusScaleEnabled(boolean scales) sourcepublic boolean isStylusScaleEnabled() sourcepublic boolean isInProgress() sourcepublic float getFocusX() sourcepublic float getFocusY() sourcepublic float getCurrentSpan() sourcepublic float getCurrentSpanX() sourcepublic float getCurrentSpanY() sourcepublic float getPreviousSpan() sourcepublic float getPreviousSpanX() sourcepublic float getPreviousSpanY() sourcepublic float getScaleFactor() sourcepublic long getTimeDelta() sourcepublic long getEventTime() sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.