{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class MotionEventSubject
Subject for MotionEvent.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static MotionEventSubject! |
assertThat(event: MotionEvent!) |
Unit |
|
Unit |
hasActionButton(actionButton: Int)Check the value of MotionEvent#getActionButton() |
Unit |
hasButtonState(buttonState: Int) |
Unit |
hasDeviceId(deviceId: Int) |
Unit |
hasDownTime(downTime: Long) |
Unit |
hasEdgeFlags(edgeFlags: Int) |
Unit |
hasEventTime(eventTime: Long) |
Unit |
|
Unit |
hasHistorySize(historySize: Int) |
Unit |
hasMetaState(metaState: Int) |
Unit |
hasPointerCount(pointerCount: Int) |
LongSubject! |
historicalEventTime(pos: Int) |
FloatSubject! |
historicalOrientation(pos: Int) |
PointerCoordsSubject! |
historicalPointerCoords(pointerIndex: Int, pos: Int) |
FloatSubject! |
historicalPressure(pos: Int) |
FloatSubject! |
historicalSize(pos: Int) |
FloatSubject! |
historicalToolMajor(pos: Int) |
FloatSubject! |
historicalToolMinor(pos: Int) |
FloatSubject! |
historicalTouchMajor(pos: Int) |
FloatSubject! |
historicalTouchMinor(pos: Int) |
FloatSubject! |
historicalX(pos: Int) |
FloatSubject! |
historicalY(pos: Int) |
java-static Factory<MotionEventSubject, MotionEvent>! |
|
FloatSubject! |
|
FloatSubject! |
orientation(pointerIndex: Int) |
PointerCoordsSubject! |
pointerCoords(pointerIndex: Int) |
IntegerSubject! |
|
PointerPropertiesSubject! |
pointerProperties(pointerIndex: Int) |
FloatSubject! |
pressure() |
FloatSubject! |
|
FloatSubject! |
rawX() |
FloatSubject! |
rawY() |
FloatSubject! |
size() |
FloatSubject! |
|
FloatSubject! |
|
FloatSubject! |
|
FloatSubject! |
|
FloatSubject! |
|
FloatSubject! |
|
FloatSubject! |
touchMajor(pointerIndex: Int) |
FloatSubject! |
|
FloatSubject! |
touchMinor(pointerIndex: Int) |
FloatSubject! |
x() |
FloatSubject! |
|
FloatSubject! |
|
FloatSubject! |
y() |
FloatSubject! |
|
FloatSubject! |
|
fun hasActionButton(actionButton: Int): Unit
Check the value of MotionEvent#getActionButton()
| Throws | |
|---|---|
java.lang.IllegalStateException: java.lang.IllegalStateException |
if called on below Android API 23 |
fun historicalPointerCoords(pointerIndex: Int, pos: Int): PointerCoordsSubject!