Share via


VelocityTracker.Obtain Method

Definition

Retrieve a new VelocityTracker object to watch the velocity of a motion.

[Android.Runtime.Register("obtain", "()Landroid/view/VelocityTracker;", "")]
public static Android.Views.VelocityTracker? Obtain ();
[<Android.Runtime.Register("obtain", "()Landroid/view/VelocityTracker;", "")>]
static member Obtain : unit -> Android.Views.VelocityTracker

Returns

Returns a new VelocityTracker.

Attributes

Remarks

Retrieve a new VelocityTracker object to watch the velocity of a motion. Be sure to call #recycle when done. You should generally only maintain an active object while tracking a movement, so that the VelocityTracker can be re-used elsewhere.

Java documentation for android.view.VelocityTracker.obtain().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to