{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
interface Tapper
Tap |
Executes different click types to given position. |
Interface to implement different click types.
Nested types |
|
|---|---|
Tapper.Status |
The result of the tap. |
Public methods |
|
|---|---|
abstract Object |
sendTap(Sends a MotionEvent to the given UiController. |
abstract Object |
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 |
abstract Object 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. |
float[] coordinates |
a float[] with x and y values of center of the tap. |
float[] precision |
a float[] with x and y values of precision of the tap. |
int inputDevice |
the input device of the tap, ie. InputDevice.SOURCE_MOUSE. |
int buttonState |
the button the tap is received from, ie. BUTTON_PRIMARY, BUTTON_SECONDARY. |
| Returns | |
|---|---|
Object |
The status of the tap. |