ScaleGestureDetector

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.

Nested types

Constructors

public ScaleGestureDetector(Context context, OnScaleGestureListener listener) source
public ScaleGestureDetector(Context context, OnScaleGestureListener listener, Handler handler) source

Methods

public boolean onTouchEvent(MotionEvent event) source
public void setQuickScaleEnabled(boolean scales) source
public boolean isQuickScaleEnabled() source
public void setStylusScaleEnabled(boolean scales) source
public boolean isStylusScaleEnabled() source
public boolean isInProgress() source
public float getFocusX() source
public float getFocusY() source
public float getCurrentSpan() source
public float getCurrentSpanX() source
public float getCurrentSpanY() source
public float getPreviousSpan() source
public float getPreviousSpanX() source
public float getPreviousSpanY() source
public float getScaleFactor() source
public long getTimeDelta() source
public long getEventTime() source

Made 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.