public class FlinglessSwiper implements DetoxSwiper
A detox-swiper that, given the total expected motions, tries to swipe fast and yet avoid an undesired fling, typically triggered at the end of a swipe motion over scrollable views. It mostly relies on ViewConfiguration.getScaledMinimumFlingVelocity (i.e. tries to keep swiping below that velocity, at least at the end).
class DetoxSwipe| Modifier and Type | Class and Description |
|---|---|
static class |
FlinglessSwiper.Companion |
| Modifier and Type | Field and Description |
|---|---|
static FlinglessSwiper.Companion |
Companion |
| Constructor and Description |
|---|
FlinglessSwiper(int expectedMotions,
androidx.test.espresso.UiController uiController,
android.view.ViewConfiguration viewConfig,
MotionEvents motionEvents)
A detox-swiper that, given the total expected motions, tries to swipe fast and yet avoid an
undesired fling, typically triggered at the end of a swipe motion over scrollable views. It mostly
relies on ViewConfiguration.getScaledMinimumFlingVelocity (i.e. tries to keep swiping below
that velocity, at least at the end).
|
FlinglessSwiper(int expectedMotions,
androidx.test.espresso.UiController uiController,
android.view.ViewConfiguration viewConfig)
A detox-swiper that, given the total expected motions, tries to swipe fast and yet avoid an
undesired fling, typically triggered at the end of a swipe motion over scrollable views. It mostly
relies on ViewConfiguration.getScaledMinimumFlingVelocity (i.e. tries to keep swiping below
that velocity, at least at the end).
|
| Modifier and Type | Method and Description |
|---|---|
void |
finishAt(float releaseX,
float releaseY) |
boolean |
moveTo(float targetX,
float targetY) |
void |
startAt(float touchX,
float touchY) |
finishAt, moveTo, startAtpublic static FlinglessSwiper.Companion Companion
@JvmOverloads
public FlinglessSwiper(int expectedMotions,
@NotNull
androidx.test.espresso.UiController uiController,
@NotNull
android.view.ViewConfiguration viewConfig,
@NotNull
MotionEvents motionEvents)
A detox-swiper that, given the total expected motions, tries to swipe fast and yet avoid an undesired fling, typically triggered at the end of a swipe motion over scrollable views. It mostly relies on ViewConfiguration.getScaledMinimumFlingVelocity (i.e. tries to keep swiping below that velocity, at least at the end).
class DetoxSwipe@JvmOverloads
public FlinglessSwiper(int expectedMotions,
@NotNull
androidx.test.espresso.UiController uiController,
@NotNull
android.view.ViewConfiguration viewConfig)
A detox-swiper that, given the total expected motions, tries to swipe fast and yet avoid an undesired fling, typically triggered at the end of a swipe motion over scrollable views. It mostly relies on ViewConfiguration.getScaledMinimumFlingVelocity (i.e. tries to keep swiping below that velocity, at least at the end).
class DetoxSwipe