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.
|
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.
|
getDeviceTime, hideKeyboard
void pressKeyCode(int key)
key
- code for the key pressed on the device.void pressKeyCode(int key, Integer metastate)
key
- code for the key pressed on the Android device.metastate
- metastate for the keypress.AndroidKeyCode
,
AndroidKeyMetastate
void longPressKeyCode(int key)
key
- code for the key pressed on the device.void longPressKeyCode(int key, Integer metastate)
key
- code for the key pressed on the Android device.metastate
- metastate for the keypress.AndroidKeyCode
,
AndroidKeyMetastate
Copyright © 2016. All rights reserved.