-
- All Implemented Interfaces:
-
androidx.test.espresso.action.Tapper
public class DetoxMultiTap implements Tapper
An implementation that is an alternative to Espresso's implementations, namely androidx.test.espresso.action.Tap.SINGLE and androidx.test.espresso.action.Tap.DOUBLE.
The main difference is: Instead of injecting distinct idle-waiting events (down, then up, etc.), here, UiController.injectMotionEventSequence is used in order to inject all events in one go, such that no idle-wait is employed in between.
The main goal here is to fix timing problems where, for example - in a single tap, the gap between the tap's 'down' and 'up' actions becomes too long to the point where the tap gets registered as a long tap (true story!). As for double-taps, a different problem addressed here is where the wait in between taps becomes too long, such that eventually the system registers two distinct taps instead of a single double-tap gesture.
This should be Espresso's default implementation IMO.
-
-
Constructor Summary
Constructors Constructor Description DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs, TapEvents tapEvents, UiControllerSpy uiControllerCallSpy, DetoxLog log)
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs, TapEvents tapEvents, UiControllerSpy uiControllerCallSpy)
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs, TapEvents tapEvents)
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs)
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs)
DetoxMultiTap(Integer times, Long interTapsDelayMs)
DetoxMultiTap(Integer times)
-
Method Summary
Modifier and Type Method Description Tapper.Status
sendTap(UiController uiController, FloatArray coordinates, FloatArray precision)
Tapper.Status
sendTap(UiController uiController, FloatArray coordinates, FloatArray precision, Integer inputDevice, Integer buttonState)
-
-
Constructor Detail
-
DetoxMultiTap
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs, TapEvents tapEvents, UiControllerSpy uiControllerCallSpy, DetoxLog log)
-
DetoxMultiTap
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs, TapEvents tapEvents, UiControllerSpy uiControllerCallSpy)
-
DetoxMultiTap
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs, TapEvents tapEvents)
-
DetoxMultiTap
DetoxMultiTap(Integer times, Long interTapsDelayMs, Long coolDownTimeMs, Long longTapMinTimeMs)
-
DetoxMultiTap
DetoxMultiTap(Integer times)
-
-
Method Detail
-
sendTap
Tapper.Status sendTap(UiController uiController, FloatArray coordinates, FloatArray precision)
-
sendTap
Tapper.Status sendTap(UiController uiController, FloatArray coordinates, FloatArray precision, Integer inputDevice, Integer buttonState)
-
-
-
-