From a048bdb1bf49a974c259901378c63140eb010721 Mon Sep 17 00:00:00 2001 From: marchersimon <50295997+marchersimon@users.noreply.github.com> Date: Tue, 13 Apr 2021 17:58:16 +0200 Subject: [PATCH] input: add page (#5740) --- pages/android/input.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/android/input.md diff --git a/pages/android/input.md b/pages/android/input.md new file mode 100644 index 000000000..c78799b8d --- /dev/null +++ b/pages/android/input.md @@ -0,0 +1,25 @@ +# input + +> Send event codes or touchscreen gestures to an Android device. +> Event codes can be inputting single characters, ending calls, volume up, etc. +> More information: . + +- Send an event code for a single character to an Android device: + +`input keyevent {{event_code}}` + +- Send a text to an Android device (`%s` represents spaces): + +`input text "{{text}}"` + +- Send a single tap to an Android device: + +`input tap {{x_pos}} {{y_pos}}` + +- Send a swipe gesture to an Android device: + +`input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}` + +- Send a long press to an Android device using a swipe gesture: + +`input swipe {{x_pos}} {{y_pos}} {{x_pos}} {{y_pos}} {{duration_in_ms}}`