2021-02-11 10:31:57 -08:00
|
|
|
# class: AndroidInput
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
* langs: js
|
|
|
|
|
|
|
|
## async method: AndroidInput.drag
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
|
|
|
|
Performs a drag between [`param: from`] and [`param: to`] points.
|
|
|
|
|
|
|
|
### param: AndroidInput.drag.from
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `from` <[Object]>
|
|
|
|
- `x` <[float]>
|
|
|
|
- `y` <[float]>
|
|
|
|
|
|
|
|
The start point of the drag.
|
|
|
|
|
|
|
|
### param: AndroidInput.drag.to
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `to` <[Object]>
|
|
|
|
- `x` <[float]>
|
|
|
|
- `y` <[float]>
|
|
|
|
|
|
|
|
The end point of the drag.
|
|
|
|
|
|
|
|
### param: AndroidInput.drag.steps
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `steps` <[int]>
|
|
|
|
|
|
|
|
The number of steps in the drag. Each step takes 5 milliseconds to complete.
|
|
|
|
|
|
|
|
## async method: AndroidInput.press
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
|
|
|
|
Presses the [`param: key`].
|
|
|
|
|
|
|
|
### param: AndroidInput.press.key
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `key` <[AndroidKey]>
|
|
|
|
|
|
|
|
Key to press.
|
|
|
|
|
|
|
|
## async method: AndroidInput.swipe
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
|
|
|
|
Swipes following the path defined by [`param: segments`].
|
|
|
|
|
|
|
|
### param: AndroidInput.swipe.from
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `from` <[Object]>
|
|
|
|
- `x` <[float]>
|
|
|
|
- `y` <[float]>
|
|
|
|
|
|
|
|
The point to start swiping from.
|
|
|
|
|
|
|
|
### param: AndroidInput.swipe.segments
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `segments` <[Array]<[Object]>>
|
|
|
|
- `x` <[float]>
|
|
|
|
- `y` <[float]>
|
|
|
|
|
|
|
|
Points following the [`param: from`] point in the swipe gesture.
|
|
|
|
|
|
|
|
### param: AndroidInput.swipe.steps
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `steps` <[int]>
|
|
|
|
|
|
|
|
The number of steps for each segment. Each step takes 5 milliseconds to complete, so 100 steps means half a second per each segment.
|
|
|
|
|
|
|
|
## async method: AndroidInput.tap
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
|
|
|
|
Taps at the specified [`param: point`].
|
|
|
|
|
|
|
|
### param: AndroidInput.tap.point
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `point` <[Object]>
|
|
|
|
- `x` <[float]>
|
|
|
|
- `y` <[float]>
|
|
|
|
|
|
|
|
The point to tap at.
|
|
|
|
|
|
|
|
## async method: AndroidInput.type
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
|
|
|
|
Types [`param: text`] into currently focused widget.
|
|
|
|
|
|
|
|
### param: AndroidInput.type.text
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.9
|
2021-02-11 10:31:57 -08:00
|
|
|
- `text` <[string]>
|
|
|
|
|
|
|
|
Text to type.
|