MotionEvent.GetToolMajor(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the length of the major axis of an ellipse that describes the size of
the approaching tool for the given pointer
<em>index</em> (use #getPointerId(int)
to find the pointer
identifier for this index).
[Android.Runtime.Register("getToolMajor", "(I)F", "")]
public float GetToolMajor (int pointerIndex);
[<Android.Runtime.Register("getToolMajor", "(I)F", "")>]
member this.GetToolMajor : 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.
Returns
- Attributes
Remarks
Returns the length of the major axis of an ellipse that describes the size of the approaching tool for the given pointer <em>index</em> (use #getPointerId(int)
to find the pointer identifier for this index). The tool area represents the estimated size of the finger or pen that is touching the device independent of its actual touch area at the point of contact.
Java documentation for android.view.MotionEvent.getToolMajor(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.