Skip to main content

AndroidInput


Methods

drag

Added in: v1.9 androidInput.drag

Performs a drag between from and to points.

Usage

await androidInput.drag(from, to, steps);

Arguments

Returns


press

Added in: v1.9 androidInput.press

Presses the key.

Usage

await androidInput.press(key);

Arguments

  • key [AndroidKey]#

    Key to press.

Returns


swipe

Added in: v1.9 androidInput.swipe

Swipes following the path defined by segments.

Usage

await androidInput.swipe(from, segments, steps);

Arguments

  • from Object#

    The point to start swiping from.

  • segments Array<Object>#

    Points following the from point 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


tap

Added in: v1.9 androidInput.tap

Taps at the specified point.

Usage

await androidInput.tap(point);

Arguments

Returns


type

Added in: v1.9 androidInput.type

Types text into currently focused widget.

Usage

await androidInput.type(text);

Arguments

Returns