-
- All Implemented Interfaces:
public final class DetoxSwipe
Along with FlinglessSwiper, this is based on from Espresso's implementation of Swiping (i.e. in androidx.test.espresso.action.Swipe - typically dispatched via the androidx.test.espresso.action.GeneralSwipeAction action class).
The main differences compared to the original impl are:
Number of motion events isn't hardcoded to 10 (as in Espresso's). Mainly, more motions mean that the overall scrolling will add up to something more accurate (i.e. closer to the scrolling originally requested by the user, in DP).
Total swipe time globally isn't hardcoded, but determined by the swiper's implementation.
More comprehensible: broken down to two separate concern classes.
-
-
Constructor Summary
Constructors Constructor Description DetoxSwipe(Float startX, Float startY, Float endX, Float endY, Integer motionCount, DetoxSwiper swiper)
-