public final class MotionEvents
extends Object
java.lang.Object | |
↳ | android.support.test.espresso.action.MotionEvents |
便于将动作事件发送到 UiController
。
Nested classes |
|
---|---|
class |
MotionEvents.DownResultHolder 保持下降的结果。 |
Public methods |
|
---|---|
static void |
sendCancel(UiController uiController, MotionEvent downEvent) |
static MotionEvents.DownResultHolder |
sendDown(UiController uiController, float[] coordinates, float[] precision) |
static boolean |
sendMovement(UiController uiController, MotionEvent downEvent, float[] coordinates) |
static boolean |
sendUp(UiController uiController, MotionEvent downEvent) |
static boolean |
sendUp(UiController uiController, MotionEvent downEvent, float[] coordinates) |
Inherited methods |
|
---|---|
From class java.lang.Object
|
void sendCancel (UiController uiController, MotionEvent downEvent)
Parameters | |
---|---|
uiController |
UiController
|
downEvent |
MotionEvent
|
MotionEvents.DownResultHolder sendDown (UiController uiController, float[] coordinates, float[] precision)
Parameters | |
---|---|
uiController |
UiController
|
coordinates |
float
|
precision |
float
|
Returns | |
---|---|
MotionEvents.DownResultHolder |
boolean sendMovement (UiController uiController, MotionEvent downEvent, float[] coordinates)
Parameters | |
---|---|
uiController |
UiController
|
downEvent |
MotionEvent
|
coordinates |
float
|
Returns | |
---|---|
boolean |
boolean sendUp (UiController uiController, MotionEvent downEvent)
Parameters | |
---|---|
uiController |
UiController
|
downEvent |
MotionEvent
|
Returns | |
---|---|
boolean |
boolean sendUp (UiController uiController, MotionEvent downEvent, float[] coordinates)
Parameters | |
---|---|
uiController |
UiController
|
downEvent |
MotionEvent
|
coordinates |
float
|
Returns | |
---|---|
boolean |