VelocityTracker.GetYVelocity(Int32) 方法

定义

检索最后一个计算的 Y 速度。

[Android.Runtime.Register("getYVelocity", "(I)F", "")]
public float GetYVelocity (int id);
[<Android.Runtime.Register("getYVelocity", "(I)F", "")>]
member this.GetYVelocity : int -> single

参数

id
Int32

要返回的指针速度。

返回

以前计算的 Y 速度。

属性

注解

检索最后一个计算的 Y 速度。 在调用此函数之前,必须先调用 #computeCurrentVelocity(int)

适用于 . 的 android.view.VelocityTracker.getYVelocity(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于