public enum TapHandlingPolicy extends Enum<TapHandlingPolicy>
TapHandlingPolicy
.Enum Constant and Description |
---|
BOTH_SINGLE_TAPS_AND_DOUBLE_TAP
In this mode, every tap (both single tap and either of the taps of a multi-tap) is reported as a single tap and every
double tap is reported as a double tap.
|
DOUBLE_TAP_ONLY
Using this mode, in case of a double tap, only the double tap is reported, but neither of the two single taps.
|
INITIAL_SINGLE_AND_DOUBLE_TAP
In this mode, in case of a double tap, only one single tap is reported and one double tap.
|
Modifier and Type | Method and Description |
---|---|
static TapHandlingPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static TapHandlingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TapHandlingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TapHandlingPolicy BOTH_SINGLE_TAPS_AND_DOUBLE_TAP
public static final TapHandlingPolicy DOUBLE_TAP_ONLY
Single taps will be reported with a short delay to ensure that they do not become double taps.
public static final TapHandlingPolicy INITIAL_SINGLE_AND_DOUBLE_TAP
The second tap for the double tap is not reported as a single tap.
public static final TapHandlingPolicy fromOrdinal(int ordinal)
public int value()
public static TapHandlingPolicy valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static TapHandlingPolicy[] values()
for (TapHandlingPolicy c : TapHandlingPolicy.values()) System.out.println(c);