public interface PressesKey extends ExecutesMethod
Modifier and Type | Method and Description |
---|---|
default void |
longPressKey(KeyEvent keyEvent)
Send a long press key event to the device under test.
|
default void |
longPressKeyCode(int key)
Deprecated.
use
longPressKey(KeyEvent) instead |
default void |
longPressKeyCode(int key,
java.lang.Integer metastate)
Deprecated.
use
longPressKey(KeyEvent) instead |
default void |
pressKey(KeyEvent keyEvent)
Send a key event to the device under test.
|
default void |
pressKeyCode(int key)
Deprecated.
use
pressKey(KeyEvent) instead |
default void |
pressKeyCode(int key,
java.lang.Integer metastate)
Deprecated.
use
pressKey(KeyEvent) instead |
execute, execute
@Deprecated default void pressKeyCode(int key)
pressKey(KeyEvent)
insteadkey
- code for the key pressed on the device.@Deprecated default void pressKeyCode(int key, java.lang.Integer metastate)
pressKey(KeyEvent)
insteadkey
- code for the key pressed on the Android device.metastate
- metastate for the keypress.default void pressKey(KeyEvent keyEvent)
keyEvent
- The generated native key event@Deprecated default void longPressKeyCode(int key)
longPressKey(KeyEvent)
insteadkey
- code for the key pressed on the device.@Deprecated default void longPressKeyCode(int key, java.lang.Integer metastate)
longPressKey(KeyEvent)
insteadkey
- code for the key pressed on the Android device.metastate
- metastate for the keypress.default void longPressKey(KeyEvent keyEvent)
keyEvent
- The generated native key event