語言

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 軸測量。

velocityY
Single

這種拋射的速度沿著 y 軸以像素每秒計算。

傳回

true如果那段短暫的感情被消耗掉;否則,。 false

實作

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於