共用方式為


GestureDetector.SimpleOnGestureListener.OnFling 方法

定義

當事件發生時通知,其發生時,其初始關閉 MotionEvent 和相符的 MotionEvent

[Android.Runtime.Register("onFling", "(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z", "GetOnFling_Landroid_view_MotionEvent_Landroid_view_MotionEvent_FFHandler")]
public virtual bool OnFling (Android.Views.MotionEvent? e1, Android.Views.MotionEvent e2, float velocityX, float velocityY);
[<Android.Runtime.Register("onFling", "(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z", "GetOnFling_Landroid_view_MotionEvent_Landroid_view_MotionEvent_FFHandler")>]
abstract member OnFling : Android.Views.MotionEvent * Android.Views.MotionEvent * single * single -> bool
override this.OnFling : Android.Views.MotionEvent * Android.Views.MotionEvent * single * single -> bool

參數

e1
MotionEvent

開始逃跑的第一個向下動作事件。

e2
MotionEvent

觸發目前 onFling 的移動動作事件。

velocityX
Single

沿著 x 軸以像素為單位的這個飛轉速度。

velocityY
Single

沿著 y 軸每秒以像素為單位測量的這個飛轉速度。

傳回

實作

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於