/** * Send a key event to the device. * * @param key code for the key pressed on the device. */ default void pressKeyCode(int key) { CommandExecutionHelper.execute(this, pressKeyCodeCommand(key)); }
/** * Send a key event along with an Android metastate to an Android device. * Metastates are things like *shift* to get uppercase characters. * * @param key code for the key pressed on the Android device. * @param metastate metastate for the keypress. */ default void pressKeyCode(int key, Integer metastate) { CommandExecutionHelper.execute(this, pressKeyCodeCommand(key, metastate)); }
/** * Send a key event to the device. * * @param key code for the key pressed on the device. */ default void pressKeyCode(int key) { CommandExecutionHelper.execute(this, pressKeyCodeCommand(key)); }
/** * Send a key event to the device. * * @deprecated use {@link #pressKey(KeyEvent)} instead * * @param key code for the key pressed on the device. */ @Deprecated default void pressKeyCode(int key) { CommandExecutionHelper.execute(this, pressKeyCodeCommand(key)); }
/** * Send a key event along with an Android metastate to an Android device. * Metastates are things like *shift* to get uppercase characters. * * @param key code for the key pressed on the Android device. * @param metastate metastate for the keypress. */ default void pressKeyCode(int key, Integer metastate) { CommandExecutionHelper.execute(this, pressKeyCodeCommand(key, metastate)); }
/** * Send a key event along with an Android metastate to an Android device. * Metastates are things like *shift* to get uppercase characters. * * @deprecated use {@link #pressKey(KeyEvent)} instead * * @param key code for the key pressed on the Android device. * @param metastate metastate for the keypress. */ @Deprecated default void pressKeyCode(int key, Integer metastate) { CommandExecutionHelper.execute(this, pressKeyCodeCommand(key, metastate)); }