Summary: Nested Classes | Methods | Inherited Methods | [Expand All]

# 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 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`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`

## 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` |

### 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

  - AdapterViewProtocol
  - AdapterViewProtocol.DataFunction
  - CoordinatesProvider
  - PrecisionDescriber
  - Swiper
  - Tapper

- ## Classes

  - AdapterDataLoaderAction
  - AdapterViewProtocol.AdaptedData
  - AdapterViewProtocol.AdaptedData.Builder
  - AdapterViewProtocols
  - CloseKeyboardAction
  - EditorAction
  - EspressoKey
  - EspressoKey.Builder
  - GeneralClickAction
  - GeneralSwipeAction
  - KeyEventAction
  - MotionEvents
  - MotionEvents.DownResultHolder
  - OpenLinkAction
  - ReplaceTextAction
  - ScrollToAction
  - TypeTextAction
  - ViewActions

- ## Enums

  - GeneralLocation
  - Press
  - Swipe
  - Swiper.Status
  - Tap
  - Tapper.Status