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:
- Touch for 100ms
- Swipe with one finger
- Swipe with two fingers
- Type a string of characters
- Touch, wait, then type
For example, to input a string of characters, use the following JSON request body:
[
{
"text": "Hello, world"
}
]