共用方式為


MotionEvent.GetHistoricalAxisValue Method

Definition

Overloads

GetHistoricalAxisValue(Axis, Int32)

#getHistoricalAxisValue(int, int, int) for the first pointer index (may be an arbitrary pointer identifier).

GetHistoricalAxisValue(Axis, Int32, Int32)

Returns the historical value of the requested axis, as per #getAxisValue(int, int), occurred between this event and the previous event for the given pointer.

GetHistoricalAxisValue(Axis, Int32)

#getHistoricalAxisValue(int, int, int) for the first pointer index (may be an arbitrary pointer identifier).

[Android.Runtime.Register("getHistoricalAxisValue", "(II)F", "")]
public float GetHistoricalAxisValue (Android.Views.Axis axis, int pos);
[<Android.Runtime.Register("getHistoricalAxisValue", "(II)F", "")>]
member this.GetHistoricalAxisValue : Android.Views.Axis * int -> single

Parameters

axis
Axis

The axis identifier for the axis value to retrieve.

pos
Int32

Which historical value to return; must be less than #getHistorySize

Returns

Attributes

Remarks

#getHistoricalAxisValue(int, int, int) for the first pointer index (may be an arbitrary pointer identifier).

Java documentation for android.view.MotionEvent.getHistoricalAxisValue(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.

See also

Applies to

GetHistoricalAxisValue(Axis, Int32, Int32)

Returns the historical value of the requested axis, as per #getAxisValue(int, int), occurred between this event and the previous event for the given pointer.

[Android.Runtime.Register("getHistoricalAxisValue", "(III)F", "")]
public float GetHistoricalAxisValue (Android.Views.Axis axis, int pointerIndex, int pos);
[<Android.Runtime.Register("getHistoricalAxisValue", "(III)F", "")>]
member this.GetHistoricalAxisValue : Android.Views.Axis * int * int -> single

Parameters

axis
Axis

The axis identifier for the axis value to retrieve.

pointerIndex
Int32

Raw index of pointer to retrieve. Value may be from 0 (the first pointer that is down) to #getPointerCount()-1.

pos
Int32

Which historical value to return; must be less than #getHistorySize

Returns

The value of the axis, or 0 if the axis is not available.

Attributes

Remarks

Returns the historical value of the requested axis, as per #getAxisValue(int, int), occurred between this event and the previous event for the given pointer. Only applies to ACTION_MOVE events.

Java documentation for android.view.MotionEvent.getHistoricalAxisValue(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