Swiper

public interface Swiper

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


接口来实现不同的刷卡类型。

Summary

Nested classes

枚举 Swiper.Status

刷卡的结果。

Public methods

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

使用给定的 uiController发送 MotionEventstartCoordinatesendCoordinates

Public methods

sendSwipe

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 UiController: a UiController to use to send MotionEvents to the screen.
startCoordinates float: a float[] with x and y co-ordinates of the start of the swipe.
endCoordinates float: a float[] with x and y co-ordinates of the end of the swipe.
precision float: a float[] with x and y values of precision of the tap.
Returns
Swiper.Status The status of the swipe.