MotionEventToolType MotionEventToolType Enum


Enumerates values returned by several types.

public enum MotionEventToolType
type MotionEventToolType = 


Eraser Eraser 4

Tool type constant: The tool is an eraser or a stylus being used in an inverted posture.

Finger Finger 1

Tool type constant: The tool is a finger.

Mouse Mouse 3

Tool type constant: The tool is a mouse or trackpad.

Stylus Stylus 2

Tool type constant: The tool is a stylus.

Unknown Unknown 0

Tool type constant: Unknown tool type. This constant is used when the tool type is not known or is not relevant, such as for a trackball or other non-pointing device.


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