Share via


MotionEvent.GetHistoricalToolMajor Method

Definition

Overloads

GetHistoricalToolMajor(Int32)

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

GetHistoricalToolMajor(Int32, Int32)

Returns a historical tool major axis coordinate, as per #getToolMajor(int), that occurred between this event and the previous event for the given pointer.

GetHistoricalToolMajor(Int32)

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

[Android.Runtime.Register("getHistoricalToolMajor", "(I)F", "")]
public float GetHistoricalToolMajor (int pos);
[<Android.Runtime.Register("getHistoricalToolMajor", "(I)F", "")>]
member this.GetHistoricalToolMajor : int -> single

Parameters

pos
Int32

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

Returns

Attributes

Remarks

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

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

GetHistoricalToolMajor(Int32, Int32)

Returns a historical tool major axis coordinate, as per #getToolMajor(int), that occurred between this event and the previous event for the given pointer.

[Android.Runtime.Register("getHistoricalToolMajor", "(II)F", "")]
public float GetHistoricalToolMajor (int pointerIndex, int pos);
[<Android.Runtime.Register("getHistoricalToolMajor", "(II)F", "")>]
member this.GetHistoricalToolMajor : int * int -> single

Parameters

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

Attributes

Remarks

Returns a historical tool major axis coordinate, as per #getToolMajor(int), that occurred between this event and the previous event for the given pointer. Only applies to ACTION_MOVE events.

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