public interface AndroidDeviceActionShortcuts extends DeviceActionShortcuts
Modifier and Type | Method and Description |
---|---|
void |
longPressKeyCode(int key)
Send a long key event to the device
|
void |
longPressKeyCode(int key,
Integer metastate)
Send a long key event along with an Android metastate to an Android device
Metastates are things like *shift* to get uppercase characters
|
void |
pressKeyCode(int key)
Send a key event to the device
|
void |
pressKeyCode(int key,
Integer metastate)
Send a key event along with an Android metastate to an Android device
Metastates are things like *shift* to get uppercase characters
|
getDeviceTime, hideKeyboard
void pressKeyCode(int key)
key
- code for the key pressed on the devicevoid pressKeyCode(int key, Integer metastate)
key
- code for the key pressed on the Android devicemetastate
- metastate for the keypressAndroidKeyCode
,
AndroidKeyMetastate
void longPressKeyCode(int key)
key
- code for the key pressed on the devicevoid longPressKeyCode(int key, Integer metastate)
key
- code for the key pressed on the Android devicemetastate
- metastate for the keypressAndroidKeyCode
,
AndroidKeyMetastate
Copyright © 2016. All rights reserved.