belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
MotionEventCompat
public
final
class
MotionEventCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.view.MotionEventCompat |
Helper for accessing features in MotionEvent
.
Summary
Constants | |
---|---|
int |
ACTION_HOVER_ENTER
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_HOVER_EXIT
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_HOVER_MOVE
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_MASK
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_POINTER_DOWN
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_POINTER_INDEX_MASK
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_POINTER_INDEX_SHIFT
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_POINTER_UP
This constant was deprecated
in API level 26.1.0.
Use |
int |
ACTION_SCROLL
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_BRAKE
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_DISTANCE
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GAS
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_1
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_10
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_11
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_12
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_13
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_14
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_15
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_16
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_2
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_3
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_4
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_5
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_6
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_7
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_8
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_GENERIC_9
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_HAT_X
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_HAT_Y
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_HSCROLL
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_LTRIGGER
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_ORIENTATION
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_PRESSURE
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_RELATIVE_X
Synonym for |
int |
AXIS_RELATIVE_Y
Synonym for |
int |
AXIS_RTRIGGER
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_RUDDER
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_RX
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_RY
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_RZ
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_SCROLL
Synonym for |
int |
AXIS_SIZE
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_THROTTLE
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_TILT
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_TOOL_MAJOR
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_TOOL_MINOR
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_TOUCH_MAJOR
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_TOUCH_MINOR
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_VSCROLL
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_WHEEL
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_X
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_Y
This constant was deprecated
in API level 26.1.0.
Use |
int |
AXIS_Z
This constant was deprecated
in API level 26.1.0.
Use |
int |
BUTTON_PRIMARY
This constant was deprecated
in API level 26.1.0.
Use |
Public methods | |
---|---|
static
int
|
findPointerIndex(MotionEvent event, int pointerId)
This method was deprecated
in API level 25.1.0.
Call |
static
int
|
getActionIndex(MotionEvent event)
This method was deprecated
in API level 26.1.0.
Call |
static
int
|
getActionMasked(MotionEvent event)
This method was deprecated
in API level 26.1.0.
Call |
static
float
|
getAxisValue(MotionEvent event, int axis)
This method was deprecated
in API level 26.1.0.
Call |
static
float
|
getAxisValue(MotionEvent event, int axis, int pointerIndex)
This method was deprecated
in API level 26.1.0.
Call |
static
int
|
getButtonState(MotionEvent event)
This method was deprecated
in API level 26.1.0.
Call |
static
int
|
getPointerCount(MotionEvent event)
This method was deprecated
in API level 25.1.0.
Call |
static
int
|
getPointerId(MotionEvent event, int pointerIndex)
This method was deprecated
in API level 25.1.0.
Call |
static
int
|
getSource(MotionEvent event)
This method was deprecated
in API level 25.1.0.
Call |
static
float
|
getX(MotionEvent event, int pointerIndex)
This method was deprecated
in API level 25.1.0.
Call |
static
float
|
getY(MotionEvent event, int pointerIndex)
This method was deprecated
in API level 25.1.0.
Call |
static
boolean
|
isFromSource(MotionEvent event, int source)
Determines whether the event is from the given source. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
ACTION_HOVER_ENTER
int ACTION_HOVER_ENTER
This constant was deprecated
in API level 26.1.0.
Use ACTION_HOVER_ENTER
directly.
Synonym for ACTION_HOVER_ENTER
.
Constant Value: 9 (0x00000009)
ACTION_HOVER_EXIT
int ACTION_HOVER_EXIT
This constant was deprecated
in API level 26.1.0.
Use ACTION_HOVER_EXIT
directly.
Synonym for ACTION_HOVER_EXIT
.
Constant Value: 10 (0x0000000a)
ACTION_HOVER_MOVE
int ACTION_HOVER_MOVE
This constant was deprecated
in API level 26.1.0.
Use ACTION_HOVER_MOVE
directly.
Synonym for ACTION_HOVER_MOVE
.
Constant Value: 7 (0x00000007)
ACTION_MASK
int ACTION_MASK
This constant was deprecated
in API level 26.1.0.
Use ACTION_MASK
directly.
Synonym for ACTION_MASK
.
Constant Value: 255 (0x000000ff)
ACTION_POINTER_DOWN
int ACTION_POINTER_DOWN
This constant was deprecated
in API level 26.1.0.
Use ACTION_POINTER_DOWN
directly.
Synonym for ACTION_POINTER_DOWN
.
Constant Value: 5 (0x00000005)
ACTION_POINTER_INDEX_MASK
int ACTION_POINTER_INDEX_MASK
This constant was deprecated
in API level 26.1.0.
Use ACTION_POINTER_INDEX_MASK
directly.
Synonym for ACTION_POINTER_INDEX_MASK
.
Constant Value: 65280 (0x0000ff00)
ACTION_POINTER_INDEX_SHIFT
int ACTION_POINTER_INDEX_SHIFT
This constant was deprecated
in API level 26.1.0.
Use ACTION_POINTER_INDEX_SHIFT
directly.
Synonym for ACTION_POINTER_INDEX_SHIFT
.
Constant Value: 8 (0x00000008)
ACTION_POINTER_UP
int ACTION_POINTER_UP
This constant was deprecated
in API level 26.1.0.
Use ACTION_POINTER_UP
directly.
Synonym for ACTION_POINTER_UP
.
Constant Value: 6 (0x00000006)
ACTION_SCROLL
int ACTION_SCROLL
This constant was deprecated
in API level 26.1.0.
Use ACTION_SCROLL
directly.
Synonym for ACTION_SCROLL
.
Constant Value: 8 (0x00000008)
AXIS_BRAKE
int AXIS_BRAKE
This constant was deprecated
in API level 26.1.0.
Use AXIS_BRAKE
directly.
Synonym for AXIS_BRAKE
.
Constant Value: 23 (0x00000017)
AXIS_DISTANCE
int AXIS_DISTANCE
This constant was deprecated
in API level 26.1.0.
Use AXIS_DISTANCE
directly.
Synonym for AXIS_DISTANCE
.
Constant Value: 24 (0x00000018)
AXIS_GAS
int AXIS_GAS
This constant was deprecated
in API level 26.1.0.
Use AXIS_GAS
directly.
Synonym for AXIS_GAS
.
Constant Value: 22 (0x00000016)
AXIS_GENERIC_1
int AXIS_GENERIC_1
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_1
directly.
Synonym for AXIS_GENERIC_1
.
Constant Value: 32 (0x00000020)
AXIS_GENERIC_10
int AXIS_GENERIC_10
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_10
directly.
Synonym for AXIS_GENERIC_10
.
Constant Value: 41 (0x00000029)
AXIS_GENERIC_11
int AXIS_GENERIC_11
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_11
directly.
Synonym for AXIS_GENERIC_11
.
Constant Value: 42 (0x0000002a)
AXIS_GENERIC_12
int AXIS_GENERIC_12
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_12
directly.
Synonym for AXIS_GENERIC_12
.
Constant Value: 43 (0x0000002b)
AXIS_GENERIC_13
int AXIS_GENERIC_13
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_13
directly.
Synonym for AXIS_GENERIC_13
.
Constant Value: 44 (0x0000002c)
AXIS_GENERIC_14
int AXIS_GENERIC_14
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_14
directly.
Synonym for AXIS_GENERIC_14
.
Constant Value: 45 (0x0000002d)
AXIS_GENERIC_15
int AXIS_GENERIC_15
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_15
directly.
Synonym for AXIS_GENERIC_15
.
Constant Value: 46 (0x0000002e)
AXIS_GENERIC_16
int AXIS_GENERIC_16
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_16
directly.
Synonym for AXIS_GENERIC_16
.
Constant Value: 47 (0x0000002f)
AXIS_GENERIC_2
int AXIS_GENERIC_2
This constant was deprecated
in API level 26.1.0.
Use AXIS_GENERIC_2
directly.
Synonym for AXIS_GENERIC_2
.
Constant Value: