Sdílet prostřednictvím


ViewConfiguration.GetScaledMaximumFlingVelocity(Int32, Axis, Int32) Method

Definition

Maximum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of inputDeviceId, from an input source and on a given motion event axis.

[Android.Runtime.Register("getScaledMaximumFlingVelocity", "(III)I", "GetGetScaledMaximumFlingVelocity_IIIHandler", ApiSince=34)]
public virtual int GetScaledMaximumFlingVelocity (int inputDeviceId, Android.Views.Axis axis, int source);
[<Android.Runtime.Register("getScaledMaximumFlingVelocity", "(III)I", "GetGetScaledMaximumFlingVelocity_IIIHandler", ApiSince=34)>]
abstract member GetScaledMaximumFlingVelocity : int * Android.Views.Axis * int -> int
override this.GetScaledMaximumFlingVelocity : int * Android.Views.Axis * int -> int

Parameters

inputDeviceId
Int32
axis
Axis
source
Int32

Returns

Attributes

Remarks

Maximum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of inputDeviceId, from an input source and on a given motion event axis.

Similar to #getScaledMinimumFlingVelocity(int, int, int), but for maximum fling velocity, instead of minimum. Also, unlike that method which returns Integer.MAX_VALUE for bad input device ID, source and/or motion event axis inputs, this method returns Integer.MIN_VALUE for such bad inputs.

Java documentation for android.view.ViewConfiguration.getScaledMaximumFlingVelocity(int, int, 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