public enum ButtonPressMode extends Enum<ButtonPressMode>
ButtonEventMode| Enum Constant and Description |
|---|
LONG
The button has been depressed for 2 seconds.
|
SHORT
The button was released before the 2-second long-press interval had
elapsed
|
| Modifier and Type | Method and Description |
|---|---|
static ButtonPressMode |
valueForString(String value)
Returns a ButtonPressMode (LONG or SHORT)
|
static ButtonPressMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonPressMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonPressMode LONG
public static final ButtonPressMode SHORT
public static ButtonPressMode[] values()
for (ButtonPressMode c : ButtonPressMode.values()) System.out.println(c);
public static ButtonPressMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ButtonPressMode valueForString(String value)
value - a String