MotionEvents
public
final
class
MotionEvents
extends Object
| java.lang.Object | |
| ↳ | android.support.test.espresso.action.MotionEvents |
Facilitates sending of motion events to a UiController.
Summary
Nested classes | |
|---|---|
class |
MotionEvents.DownResultHolder
Holds the result of a down motion. |
Public methods | |
|---|---|
static
void
|
sendCancel(UiController uiController, MotionEvent downEvent)
|
static
MotionEvents.DownResultHolder
|
sendDown(UiController uiController, float[] coordinates, float[] precision)
|
static
MotionEvents.DownResultHolder
|
sendDown(UiController uiController, float[] coordinates, float[] precision, int inputDevice, int buttonState)
|
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 | |
|---|---|
java.lang.Object
| |
Public methods
sendCancel
void sendCancel (UiController uiController, MotionEvent downEvent)
| Parameters | |
|---|---|
uiController |
UiController |
downEvent |
MotionEvent |
sendDown
MotionEvents.DownResultHolder sendDown (UiController uiController, float[] coordinates, float[] precision)
| Parameters | |
|---|---|
uiController |
UiController |
coordinates |
float |
precision |
float |
| Returns | |
|---|---|
MotionEvents.DownResultHolder |
|
sendDown
MotionEvents.DownResultHolder sendDown (UiController uiController, float[] coordinates, float[] precision, int inputDevice, int buttonState)
| Parameters | |
|---|---|
uiController |
UiController |
coordinates |
float |
precision |
float |
inputDevice |
int |
buttonState |
int |
| Returns | |
|---|---|
MotionEvents.DownResultHolder |
|
sendMovement
boolean sendMovement (UiController uiController, MotionEvent downEvent, float[] coordinates)
| Parameters | |
|---|---|
uiController |
UiController |
downEvent |
MotionEvent |
coordinates |
float |
| Returns | |
|---|---|
boolean |
|
sendUp
boolean sendUp (UiController uiController, MotionEvent downEvent)
| Parameters | |
|---|---|
uiController |
UiController |
downEvent |
MotionEvent |
| Returns | |
|---|---|
boolean |
|
sendUp
boolean sendUp (UiController uiController, MotionEvent downEvent, float[] coordinates)
| Parameters | |
|---|---|
uiController |
UiController |
downEvent |
MotionEvent |
coordinates |
float |
| Returns | |
|---|---|
boolean |
|
Interfaces
Classes
- AdapterDataLoaderAction
- AdapterViewProtocol.AdaptedData
- AdapterViewProtocol.AdaptedData.Builder
- AdapterViewProtocols
- CloseKeyboardAction
- EditorAction
- EspressoKey
- EspressoKey.Builder
- GeneralClickAction
- GeneralSwipeAction
- KeyEventAction
- MotionEvents
- MotionEvents.DownResultHolder
- OpenLinkAction
- PressBackAction
- RepeatActionUntilViewState
- ReplaceTextAction
- ScrollToAction
- TypeTextAction
- ViewActions
Enums
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]