| androidx.test.espresso.action.Tapper |
Known Indirect Subclasses
| Tap |
Executes different click types to given position. |
|
Class Overview
Interface to implement different click types.
Summary
| Nested Classes |
|
enum |
Tapper.Status |
The result of the tap. |
| Public Methods |
|
abstract
Tapper.Status
|
sendTap(UiController uiController, float[] coordinates, float[] precision)
This method is deprecated.
Use @{link #sendTap(UiController, float[], float[], int, int)} instead This will
call the @{link #sendTap(UiController, float[], float[], int, int)} with SOURCE_UNKNOWN, BUTTON_PRIMARY
by default.
|
|
abstract
Tapper.Status
|
sendTap(UiController uiController, float[] coordinates, float[] precision, int inputDevice, int buttonState)
Sends a MotionEvent to the given UiController.
|
Public Methods
public
abstract
Tapper.Status
sendTap
(UiController uiController, float[] coordinates, float[] precision)
This method is deprecated.
Use @{link #sendTap(UiController, float[], float[], int, int)} instead This will
call the @{link #sendTap(UiController, float[], float[], int, int)} with SOURCE_UNKNOWN, BUTTON_PRIMARY
by default.
| Parameters |
uiController |
UiController |
coordinates |
float |
precision |
float |
public
abstract
Tapper.Status
sendTap
(UiController uiController, float[] coordinates, float[] precision, int inputDevice, int buttonState)
Sends a MotionEvent to the given UiController.
| Parameters |
uiController |
UiController: a UiController to use to send MotionEvents to the screen. |
coordinates |
float: a float[] with x and y values of center of the tap. |
precision |
float: a float[] with x and y values of precision of the tap. |
inputDevice |
int: the input device of the tap, ie. InputDevice.SOURCE_MOUSE. |
buttonState |
int: the button the tap is received from, ie. BUTTON_PRIMARY, BUTTON_SECONDARY. |