com.hp.lft.sdk.mobile

Enum Keys

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


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

      Enum Constant and Description
      BACKSPACE
      The Backspace key (supported on iOS and Android).
      DELETE
      The Delete key (supported on iOS and Android).
      DOWN
      The Down key (supported on Android).
      END
      The End key (supported on Android).
      ENTER
      The Enter key (supported on iOS and Android).
      ESCAPE
      The Escape key (supported on Android).
      HOME
      The Home key (supported on Android).
      LEFT
      The Left key (supported on Android).
      PAGE_DOWN
      The PageDown key (supported on Android).
      PAGE_UP
      The PageUp key (supported on Android).
      RETURN
      The Return key (supported on iOS).
      RIGHT
      The Right key (supported on Android).
      TAB
      The Tab key (supported on Android).
      UP
      The Up key (supported on Android).
    • Method Summary

      Modifier and TypeMethod and Description
      static KeysvalueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Keys[]values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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).
      • RIGHT

        public static final Keys RIGHT
        The Right 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 Detail

      • values

        public static Keys[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Keys c : Keys.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Keys valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null