拖曳手勢

公開類別 DragGesture

使用者在觸控螢幕執行拖曳動作時指定的手勢。

巢狀類別

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

沿用欄位

公用建構函式

DragGesture(GesturePointersUtilityGesturePointersUtility、HitTestResult HitTestResult、MotionEventMotionEvent)

公用方法

Vector3
Vector3

保護方法

布林
canStart (HitTestResult HitTestResult、MotionEventMotionEvent)
拖曳手勢
void
void
void
onStart(HitTestResult HitTestResult、MotionEventMotionEvent)
布林
updateGesture(HitTestResult HitTestResult、MotionEventMotionEvent)

沿用的方法

公用建構函式

public DragGesture (GesturePointersUtilityGesturePointersUtility、HitTestResult HitTestResult、MotionEventMotionEvent)

參數
GesturePointersUtility
HitTestResult
動作事件

公用方法

公開 Vector3 getDelta ()

publicVector3 getPosition ()

保護方法

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

參數
HitTestResult
動作事件

受保護的 DragGesture getSelf ()

受保護的作廢 onCancel ()

受保護 void onFinish ()

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

參數
HitTestResult
動作事件

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

參數
HitTestResult
動作事件