{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
interface Swiper
Swipe |
Executes different swipe types to given positions. |
Interface to implement different swipe types.
Nested types |
|
|---|---|
Swiper.Status |
The result of the swipe. |
Public methods |
|
|---|---|
abstract Object |
sendSwipe(Swipes from |
abstract Object sendSwipe(
UiController uiController,
float[] startCoordinates,
float[] endCoordinates,
float[] precision
)
Swipes from startCoordinates to endCoordinates using the given
uiController to send MotionEvents.
| Parameters | |
|---|---|
UiController uiController |
a UiController to use to send MotionEvents to the screen. |
float[] startCoordinates |
a float[] with x and y co-ordinates of the start of the swipe. |
float[] endCoordinates |
a float[] with x and y co-ordinates of the end of the swipe. |
float[] precision |
a float[] with x and y values of precision of the tap. |
| Returns | |
|---|---|
Object |
The status of the swipe. |