PinchGesture

public class PinchGesture

用户在触摸屏上执行双指张合手势时的手势。

嵌套类

接口 PinchGesture.OnGestureEventListener 将由 PinchGesture 调用的回调的接口定义。 

继承的字段

公共构造函数

PinchGestureGesturePointersUtility gesturePointersUtility、MotionEvent MotionEvent、整数指针 Id2)

公共方法

无效
cancel [取消]()
取消正在进行的手势。
浮点数
浮点数
浮点数
浮点数

受保护的方法

布尔值
canStart(HitTestResulthitTestResult、MotionEvent motionEvent)
PinchGesture
无效
无效
无效
onStart(HitTestResulthitTestResult, MotionEvent motionEvent)
布尔值
updateGestureHitTestResult命中 TestResult、MotionEvent motionEvent)

继承的方法

公共构造函数

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

参数
gesturePointersUtility
motionEvent [动作事件]
指针 ID2

公共方法

public void cancel ()

取消正在进行的手势。

public float gapDeltaInches ()

public float gapInches ()

public float getGap ()

public float getGapDelta ()

受保护的方法

受保护的布尔值 canStart (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]

保护 PinchGesture getSelf ()

Protect void onCancel ()

Protect void onFinish ()

Protect void onStart (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]

受保护的布尔值 updateGesture (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]