Skip to main content

Type and Tap on Virtual Devices

Typing and tapping on certain virtual devices is easy.

AVH includes a background agent that allows for keyboard passthrough.

Use the Web Interface

When using the AVH web interface, your local mouse and keyboard will automatically be passed through to the virtual device.

Simply use your mouse to click on the display field then start typing on your keyboard.

Use the API

The AVH REST API includes an option for providing input to a virtual device.

You will need to include an instance ID, which you can find in the URL on the web interface, and a JSON request body.

Under the Examples dropdown, you can see how to:

  1. Touch for 100ms
  2. Swipe with one finger
  3. Swipe with two fingers
  4. Type a string of characters
  5. Touch, wait, then type

For example, to input a string of characters, use the following JSON request body:

[
{
"text": "Hello, world"
}
]