Skip to content

AndroidInput ​

Added in: v1.9

Methods ​

androidInput.drag() ​

Added in: v1.9 async

Performs a drag between from and to points.

Arguments

  • from Object

    The start point of the drag.

    • x float
    • y float
  • to Object

    The end point of the drag.

    • x float
    • y float
  • steps int

    The number of steps in the drag. Each step takes 5 milliseconds to complete.

androidInput.press() ​

Added in: v1.9 async

Presses the key.

Arguments

  • key AndroidKey

    Key to press.

androidInput.swipe() ​

Added in: v1.9 async

Swipes following the path defined by segments.

Arguments

  • from Object

    The point to start swiping from.

    • x float
    • y float
  • segments Array<Object>

    Points following the from point in the swipe gesture.

    • x float
    • y float
  • 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.

androidInput.tap() ​

Added in: v1.9 async

Taps at the specified point.

Arguments

  • point Object

    The point to tap at.

    • x float
    • y float

androidInput.type() ​

Added in: v1.9 async

Types text into currently focused widget.

Arguments

  • text string

    Text to type.

Released under the Apache 2.0 License.