Android.Views.VelocityTracker.ComputeCurrentVelocity Method
Compute the current velocity based on the points that have been collected.

Syntax

[Android.Runtime.Register("computeCurrentVelocity", "(IF)V", "")]
public void ComputeCurrentVelocity (int units, float maxVelocity)

Parameters

units
The units you would like the velocity in. A value of 1 provides pixels per millisecond, 1000 provides pixels per second, etc.
maxVelocity
The maximum velocity that can be computed by this method. This value must be declared in the same unit as the units parameter. This value must be positive.

Remarks

Compute the current velocity based on the points that have been collected. Only call this when you actually want to retrieve velocity information, as it is relatively expensive. You can then retrieve the velocity with VelocityTracker.XVelocity and VelocityTracker.YVelocity.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4