AndroidInput
Methods
drag
Added in: v1.9Performs a drag between from
and to
points.
Usage
await androidInput.drag(from, to, steps);
Arguments
-
The start point of the drag.
-
The end point of the drag.
-
The number of steps in the drag. Each step takes 5 milliseconds to complete.
Returns
press
Added in: v1.9Presses the key
.
Usage
await androidInput.press(key);
Arguments
-
key
[AndroidKey]#Key to press.
Returns
swipe
Added in: v1.9Swipes following the path defined by segments
.
Usage
await androidInput.swipe(from, segments, steps);
Arguments
-
The point to start swiping from.
-
Points following the
from
point in the swipe gesture. -
The number of steps for each segment. Each step takes 5 milliseconds to complete, so 100 steps means half a second per each segment.
Returns
tap
Added in: v1.9Taps at the specified point
.
Usage
await androidInput.tap(point);
Arguments
Returns
type
Added in: v1.9Types text
into currently focused widget.
Usage
await androidInput.type(text);
Arguments
Returns