PinchGesture

public class PinchGesture

Gesture for when the user performs a two-finger pinch motion on the touch screen.

Nested Classes

interface PinchGesture.OnGestureEventListener Interface definition for callbacks to be invoked by a PinchGesture

Inherited Fields

Public Constructors

PinchGesture(GesturePointersUtility gesturePointersUtility, MotionEvent motionEvent, int pointerId2)

Public Methods

void
cancel()
Cancels the gesture in progress.
float
float
float
getGap()
float

Protected Methods

boolean
canStart(HitTestResult hitTestResult, MotionEvent motionEvent)
PinchGesture
void
void
void
onStart(HitTestResult hitTestResult, MotionEvent motionEvent)
boolean
updateGesture(HitTestResult hitTestResult, MotionEvent motionEvent)

Inherited Methods

Public Constructors

public PinchGesture (GesturePointersUtility gesturePointersUtility, MotionEvent motionEvent, int pointerId2)

Parameters
gesturePointersUtility
motionEvent
pointerId2

Public Methods

public void cancel ()

Cancels the gesture in progress.

public float gapDeltaInches ()

public float gapInches ()

public float getGap ()

public float getGapDelta ()

Protected Methods

protected boolean canStart (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent

protected PinchGesture getSelf ()

protected void onCancel ()

protected void onFinish ()

protected void onStart (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent

protected boolean updateGesture (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent

傳送您對下列選項的寶貴意見...

這個網頁