Partager via


VelocityTracker.IsAxisSupported(Axis) Method

Definition

Checks whether a given velocity-trackable MotionEvent axis is supported for velocity tracking by this VelocityTracker instance (refer to #getAxisVelocity(int, int) for a list of potentially velocity-trackable axes).

[Android.Runtime.Register("isAxisSupported", "(I)Z", "", ApiSince=34)]
public bool IsAxisSupported (Android.Views.Axis axis);
[<Android.Runtime.Register("isAxisSupported", "(I)Z", "", ApiSince=34)>]
member this.IsAxisSupported : Android.Views.Axis -> bool

Parameters

axis
Axis

The axis to check for velocity support.

Returns

true if axis is supported for velocity tracking, or false otherwise.

Attributes

Remarks

Checks whether a given velocity-trackable MotionEvent axis is supported for velocity tracking by this VelocityTracker instance (refer to #getAxisVelocity(int, int) for a list of potentially velocity-trackable axes).

Note that the value returned from this method will stay the same for a given instance, so a single check for axis support is enough per a VelocityTracker instance.

Java documentation for android.view.VelocityTracker.isAxisSupported(int).

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