雙指撥動

公開類別 P 雙指手勢

這個手勢代表使用者在觸控螢幕上用雙指撥動手勢執行動作。

巢狀類別

PetteGesture.OnGestureEventListener PinchGesture 叫用的回呼介面定義。 

沿用欄位

公用建構函式

P 雙指手勢(GesturePointersUtility 手勢 PointPointUtility、MotionEventMotionEvent、int PointerId2)

公用方法

void
cancel()
取消進行中的手勢。
浮點值
浮點值
浮點值
浮點值

保護方法

布林
canStart (HitTestResult HitTestResult、MotionEventMotionEvent)
雙指撥動
void
void
void
onStart (HitTestResult HitTestResult、MotionEventMotionEvent)
布林
updateGesture (HitTestResult HitTestResult、MotionEventMotionEvent)

沿用的方法

公用建構函式

public P 雙指手勢 (GesturePointersUtilityGesturePointersUtility、MotionEventMotionEvent、Int PointerId2)

參數
GesturePointersUtility
動作事件
PointerId2

公用方法

public cancel ()

取消進行中的手勢。

public float gapDeltaInches()

public float gapInches ()

public float getGap ()

public float getGapDelta ()

保護方法

受保護的布林值 canStart (HitTestResult HitTestResult、MotionEventMotionEvent)

參數
HitTestResult
動作事件

受保護的 P 雙指手勢 getSelf ()

受保護的作廢 onCancel ()

受保護 void onFinish ()

受保護的 void onStart (HitTestResult HitTestResult、MotionEventMotionEvent)

參數
HitTestResult
動作事件

受保護的布林值 updateGesture (HitTestResult HitTestResult、MotionEventMotionEvent)

參數
HitTestResult
動作事件