Android APIs
public interface

Swiper

android.support.test.espresso.action.Swiper
Known Indirect Subclasses

Class Overview

Interface to implement different swipe types.

Summary

Nested Classes
enum Swiper.Status The result of the swipe. 
Public Methods
abstract Swiper.Status sendSwipe(UiController uiController, float[] startCoordinates, float[] endCoordinates, float[] precision)
Swipes from startCoordinates to endCoordinates using the given uiController to send MotionEvents.

Public Methods

public abstract Swiper.Status sendSwipe (UiController uiController, float[] startCoordinates, float[] endCoordinates, float[] precision)

Swipes from startCoordinates to endCoordinates using the given uiController to send MotionEvents.

Parameters
uiController a UiController to use to send MotionEvents to the screen.
startCoordinates a float[] with x and y co-ordinates of the start of the swipe.
endCoordinates a float[] with x and y co-ordinates of the end of the swipe.
precision a float[] with x and y values of precision of the tap.
Returns
  • The status of the swipe.