MotionEvent.GetToolType(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.
Gets the tool type of a pointer for the given pointer index.
[Android.Runtime.Register("getToolType", "(I)I", "")]
public Android.Views.MotionEventToolType GetToolType (int pointerIndex);
[<Android.Runtime.Register("getToolType", "(I)I", "")>]
member this.GetToolType : int -> Android.Views.MotionEventToolType
Parameters
- pointerIndex
- Int32
Raw index of pointer to retrieve. Value may be from 0
(the first pointer that is down) to #getPointerCount()
-1.
Returns
The tool type of the pointer.
- Attributes
Remarks
Gets the tool type of a pointer for the given pointer index. The tool type indicates the type of tool used to make contact such as a finger or stylus, if known.
Java documentation for android.view.MotionEvent.getToolType(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.