BaseGestureRecognizer

公用抽象類別 BaseGestureRecognizer
已知的直接子類別

所有手勢辨識器的基本類別,例如 DragGestureRecognizer。

手勢辨識器會處理觸控輸入,以判斷手勢是否會在啟動時啟動,並會觸發事件。

如要判斷手勢完成/更新的時間,請監聽手勢物件上的事件。

巢狀類別

BaseGestureRecognizer.OnGestureStartedListener<T 延伸 BaseGesture<T>> BaseGesture 啟動時叫用的回呼的介面定義。

欄位

受保護的最終 GesturePointersUtility gesturePointersUtility
受保護的最終 ArrayList<T 擴充 BaseGesture<T>> 手勢

公用建構函式

公用方法

void
void
onTouch(HitTestResult HitTestResult、MotionEventMotionEvent)
void

保護方法

抽象 void
tryCreateGestures(HitTestResult HitTestResult、MotionEventMotionEvent)

沿用的方法

欄位

受保護的最終 GesturePointersUtility gesturePointersUtility

受保護的最終 ArrayList<T 可擴充 BaseGesture<T>> 手勢

公用建構函式

public BaseGestureRecognizer (GesturePointersUtilityGesturePointersUtility)

參數
GesturePointersUtility

公用方法

public addOnGestureStartedListener (OnGestureStartedListener<T>Listener)

參數
事件監聽器

public onTouch (HitTestResult HitTestResult、MotionEventMotionEvent)

參數
HitTestResult
動作事件

public removeOnGestureStartedListener (OnGestureStartedListener<T>Listener)

參數
事件監聽器

保護方法

受保護的抽象 void tryCreateGestures (HitTestResult HitTestResult、MotionEventMotionEvent)

參數
HitTestResult
動作事件