Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

30
android/input Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# input
> Send event codes or touchscreen gestures to an Android device.
> This command can only be used through `adb shell`.
> 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_position}} {{y_position}}`
- 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_position}} {{y_position}} {{x_position}} {{y_position}} {{duration_in_ms}}`