AndroidInput
- androidInput.drag(from, to, steps)
- androidInput.press(key)
- androidInput.swipe(from, segments, steps)
- androidInput.tap(point)
- androidInput.type(text)
androidInput.drag(from, to, steps)
Added in: v1.9from<Object> The start point of the drag.#to<Object> The end point of the drag.#steps<number> The number of steps in the drag. Each step takes 5 milliseconds to complete.#- returns: <Promise<void>>#
Performs a drag between from and to points.
androidInput.press(key)
Added in: v1.9Presses the key.
androidInput.swipe(from, segments, steps)
Added in: v1.9from<Object> The point to start swiping from.#segments<Array<Object>> Points following thefrompoint in the swipe gesture.#steps<number> 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: <Promise<void>>#
Swipes following the path defined by segments.
androidInput.tap(point)
Added in: v1.9Taps at the specified point.
androidInput.type(text)
Added in: v1.9Types text into currently focused widget.