public enum GestureType extends java.lang.Enum<GestureType>
Enum Constant and Description |
---|
DOUBLE_TAP |
FLING_CANCEL |
FLING_START |
LONG_PRESS |
LONG_TAP |
PINCH_BEGIN |
PINCH_END |
PINCH_UPDATE |
SCROLL_BEGIN |
SCROLL_END |
SCROLL_UPDATE |
SHOW_PRESS |
TAP |
TAP_CANCEL |
TAP_DOWN |
TAP_UNCONFIRMED |
TWO_FINGER_TAP |
Modifier and Type | Method and Description |
---|---|
static GestureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static GestureType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final GestureType SCROLL_BEGIN
public static final GestureType SCROLL_END
public static final GestureType SCROLL_UPDATE
public static final GestureType FLING_START
public static final GestureType FLING_CANCEL
public static final GestureType SHOW_PRESS
public static final GestureType TAP
public static final GestureType TAP_UNCONFIRMED
public static final GestureType TAP_DOWN
public static final GestureType TAP_CANCEL
public static final GestureType DOUBLE_TAP
public static final GestureType TWO_FINGER_TAP
public static final GestureType LONG_PRESS
public static final GestureType LONG_TAP
public static final GestureType PINCH_BEGIN
public static final GestureType PINCH_END
public static final GestureType PINCH_UPDATE
public static GestureType[] values()
for (GestureType c : GestureType.values()) System.out.println(c);
public static GestureType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null