Enum Class Keys

java.lang.Object
java.lang.Enum<Keys>
com.hp.lft.sdk.mobile.Keys
All Implemented Interfaces:
Serializable, Comparable<Keys>, java.lang.constant.Constable

public enum Keys extends Enum<Keys>
Device keys constants representing mobile keyboard keys, which can be used in the input parameter of the Device.sendKey(DeviceKeys key) method.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The Backspace key (supported on iOS and Android).
    The Delete key (supported on iOS and Android).
    The Down key (supported on Android).
    The End key (supported on Android).
    The Enter key (supported on iOS and Android).
    The Escape key (supported on Android).
    The Home key (supported on Android).
    The Left key (supported on Android).
    The PageDown key (supported on Android).
    The PageUp key (supported on Android).
    The Return key (supported on iOS).
    The Right key (supported on Android).
    The Tab key (supported on Android).
    The Up key (supported on Android).
  • Method Summary

    Modifier and Type
    Method
    Description
    static Keys
    Returns the enum constant of this class with the specified name.
    static Keys[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ENTER

      public static final Keys ENTER
      The Enter key (supported on iOS and Android).
    • RETURN

      public static final Keys RETURN
      The Return key (supported on iOS).
    • BACKSPACE

      public static final Keys BACKSPACE
      The Backspace key (supported on iOS and Android).
    • DELETE

      public static final Keys DELETE
      The Delete key (supported on iOS and Android).
    • TAB

      public static final Keys TAB
      The Tab key (supported on Android).
    • ESCAPE

      public static final Keys ESCAPE
      The Escape key (supported on Android).
    • PAGE_UP

      public static final Keys PAGE_UP
      The PageUp key (supported on Android).
    • PAGE_DOWN

      public static final Keys PAGE_DOWN
      The PageDown key (supported on Android).
    • END

      public static final Keys END
      The End key (supported on Android).
    • HOME

      public static final Keys HOME
      The Home key (supported on Android).
    • LEFT

      public static final Keys LEFT
      The Left key (supported on Android).
    • UP

      public static final Keys UP
      The Up key (supported on Android).
    • DOWN

      public static final Keys DOWN
      The Down key (supported on Android).
  • Method Details

    • values

      public static Keys[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Keys valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null