public interface PressesKeyCode extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default void |
longPressKeyCode(int key)
Send a long key event to the device.
|
default void |
longPressKeyCode(int key,
java.lang.Integer metastate)
Send a long key event along with an Android metastate to an Android device.
|
default void |
pressKeyCode(int key)
Send a key event to the device.
|
default void |
pressKeyCode(int key,
java.lang.Integer metastate)
Send a key event along with an Android metastate to an Android device.
|
execute, execute
default void pressKeyCode(int key)
key
- code for the key pressed on the device.default void pressKeyCode(int key, java.lang.Integer metastate)
key
- code for the key pressed on the Android device.metastate
- metastate for the keypress.default void longPressKeyCode(int key)
key
- code for the key pressed on the device.default void longPressKeyCode(int key, java.lang.Integer metastate)
key
- code for the key pressed on the Android device.metastate
- metastate for the keypress.