Interface AndroidInput

Hierarchy

  • AndroidInput

Methods

Methods

  • Performs a drag between from and to points.

    Parameters

    • from: {
          x: number;
          y: number;
      }

      The start point of the drag.

      • x: number
      • y: number
    • to: {
          x: number;
          y: number;
      }

      The end point of the drag.

      • x: number
      • y: number
    • steps: number

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

    Returns Promise<void>

  • Presses the key.

    Parameters

    Returns Promise<void>

  • Swipes following the path defined by segments.

    Parameters

    • from: {
          x: number;
          y: number;
      }

      The point to start swiping from.

      • x: number
      • y: number
    • segments: readonly {
          x: number;
          y: number;
      }[]

      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 Promise<void>

  • Taps at the specified point.

    Parameters

    • point: {
          x: number;
          y: number;
      }

      The point to tap at.

      • x: number
      • y: number

    Returns Promise<void>

  • Types text into currently focused widget.

    Parameters

    • text: string

      Text to type.

    Returns Promise<void>

Generated using TypeDoc