Language

Gallery.OnFling(MotionEvent, MotionEvent, Single, Single) メソッド

定義

注意事項

deprecated

ダウン MotionEvent のイニシャルと一致する MotionEventで発生したときに、フリング イベントが通知されます。

[Android.Runtime.Register("onFling", "(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z", "GetOnFling_Landroid_view_MotionEvent_Landroid_view_MotionEvent_FFHandler")]
[System.Obsolete("deprecated")]
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")>]
[<System.Obsolete("deprecated")>]
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 軸に沿って 1 秒あたりのピクセル単位で測定されたこのフリングの速度。

velocityY
Single

このフリングの速度は、y 軸に沿ってピクセル/秒で測定されます。

返品

true フリングが消費された場合。それ以外の場合は false。

実装

属性

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象