Language

VelocityTracker.ComputeCurrentVelocity メソッド

定義

オーバーロード

名前 説明
ComputeCurrentVelocity(Int32)

最大速度が Float の #computeCurrentVelocity(int, float) を呼び出すことと同じです。

ComputeCurrentVelocity(Int32, Single)

収集されたポイントに基づいて現在の速度を計算します。

ComputeCurrentVelocity(Int32)

最大速度が Float の #computeCurrentVelocity(int, float) を呼び出すことと同じです。

[Android.Runtime.Register("computeCurrentVelocity", "(I)V", "")]
public void ComputeCurrentVelocity(int units);
[<Android.Runtime.Register("computeCurrentVelocity", "(I)V", "")>]
member this.ComputeCurrentVelocity : int -> unit

パラメーター

units
Int32

単位に使用される System.Int32 値。

属性

注釈

Float.MAX_VALUE の最大速度で #computeCurrentVelocity(int, float) を呼び出すことと同じです。

Javaドキュメント。

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

こちらもご覧ください

  • <xref:Android.Views.VelocityTracker.ComputeCurrentVelocity(System.Int32%2c+System.Single)>

適用対象

ComputeCurrentVelocity(Int32, Single)

収集されたポイントに基づいて現在の速度を計算します。

[Android.Runtime.Register("computeCurrentVelocity", "(IF)V", "")]
public void ComputeCurrentVelocity(int units, float maxVelocity);
[<Android.Runtime.Register("computeCurrentVelocity", "(IF)V", "")>]
member this.ComputeCurrentVelocity : int * single -> unit

パラメーター

units
Int32

速度を設定する単位。 値 1 はミリ秒あたりの単位を提供し、1000 は 1 秒あたりの単位を提供します。ここで参照する単位は、モーションが報告されるのと同じ単位であることに注意してください。 軸 X と Y の場合、単位はピクセルです。

maxVelocity
Single

このメソッドで計算できる最大速度。 この値は、units パラメーターと同じ単位で宣言する必要があります。 この値は正である必要があります。

属性

注釈

収集されたポイントに基づいて現在の速度を計算します。 これは、速度情報を実際に取得する場合にのみ呼び出します。これは比較的高価であるためです。 その後、 #getXVelocity() と #getYVelocity()を使用して速度を取得できます。

Javaドキュメント。

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

適用対象