VelocityTracker.GetXVelocity(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取回最後計算出的 X 速度。
[Android.Runtime.Register("getXVelocity", "(I)F", "")]
public float GetXVelocity(int id);
[<Android.Runtime.Register("getXVelocity", "(I)F", "")>]
member this.GetXVelocity : int -> single
參數
- id
- Int32
要回傳哪個指標的速度。
傳回
先前計算出的 X 速度。
- 屬性
備註
取回最後計算出的 X 速度。 你必須先呼叫 #computeCurrentVelocity(int) 這個函式。
Java 文件 android.view.VelocityTracker.getXVelocity(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。