mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-22 08:15:28 +02:00
input: add page (#5740)
This commit is contained in:
parent
660d097d9c
commit
a048bdb1bf
1 changed files with 25 additions and 0 deletions
25
pages/android/input.md
Normal file
25
pages/android/input.md
Normal file
|
@ -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: <https://developer.android.com/reference/android/view/KeyEvent.html#constants_1>.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue