java.lang.Object | |
↳ | android.support.v4.view.MotionEventCompat |
Helper for accessing features in MotionEvent
introduced
after API level 4 in a backwards compatible fashion.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Call
findPointerIndex(int) .
| |||||||||||
Call
getAction() , returning only the pointer index
portion
| |||||||||||
Call
getAction() , returning only the ACTION_MASK
portion.
| |||||||||||
Returns the value of the requested axis for the given pointer index
(use
getPointerId(MotionEvent, int) to find the pointer identifier for this index).
| |||||||||||
Get axis value for the first pointer index (may be an
arbitrary pointer identifier).
| |||||||||||
The number of pointers of data contained in this event.
| |||||||||||
Call
getPointerId(int) .
| |||||||||||
Gets the source of the event.
| |||||||||||
Call
getX(int) .
| |||||||||||
Call
getY(int) .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Synonym for ACTION_HOVER_ENTER
.
Synonym for ACTION_HOVER_EXIT
.
Synonym for ACTION_HOVER_MOVE
.
Synonym for ACTION_POINTER_DOWN
.
Synonym for ACTION_POINTER_INDEX_MASK
.
Synonym for ACTION_POINTER_INDEX_SHIFT
.
Synonym for ACTION_POINTER_UP
.
Synonym for AXIS_GENERIC_10
.
Synonym for AXIS_GENERIC_11
.
Synonym for AXIS_GENERIC_12
.
Synonym for AXIS_GENERIC_13
.
Synonym for AXIS_GENERIC_14
.
Synonym for AXIS_GENERIC_15
.
Synonym for AXIS_GENERIC_16
.
Synonym for AXIS_ORIENTATION
.
Synonym for AXIS_TOUCH_MAJOR
.
Synonym for AXIS_TOUCH_MINOR
.
Call findPointerIndex(int)
.
If running on a pre-ECLAIR
device,
does nothing and returns -1.
Call getAction()
, returning only the pointer index
portion
Call getAction()
, returning only the ACTION_MASK
portion.
Returns the value of the requested axis for the given pointer index
(use getPointerId(MotionEvent, int)
to find the pointer identifier for this index).
axis | The axis identifier for the axis value to retrieve. |
---|---|
pointerIndex | Raw index of pointer to retrieve. Value may be from 0
(the first pointer that is down) to getPointerCount(MotionEvent) -1. |
The number of pointers of data contained in this event. Always >= 1.
Call getPointerId(int)
.
If running on a pre-ECLAIR
device,
IndexOutOfBoundsException
is thrown.
Gets the source of the event.
SOURCE_UNKNOWN
if unknown.
Call getX(int)
.
If running on a pre-ECLAIR
device,
IndexOutOfBoundsException
is thrown.
Call getY(int)
.
If running on a pre-ECLAIR
device,
IndexOutOfBoundsException
is thrown.