Package 

Class DetoxSwipe

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit perform()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait