public enum KeyEventFlag extends java.lang.Enum<KeyEventFlag>
Enum Constant and Description |
---|
CANCELED
When associated with up key events, this indicates that the key press
has been canceled.
|
CANCELED_LONG_PRESS
Set when a key event has
CANCELED set because a long
press action was executed while it was down. |
EDITOR_ACTION
This mask is used for compatibility, to identify enter keys that are
coming from an IME whose enter key has been auto-labelled "next" or
"done".
|
FALLBACK
Set when a key event has been synthesized to implement default behavior
for an event that the application did not handle.
|
FROM_SYSTEM
This mask is set if an event was known to come from a trusted part
of the system.
|
KEEP_TOUCH_MODE
This mask is set if we don't want the key event to cause us to leave
touch mode.
|
LONG_PRESS
This flag is set for the first key repeat that occurs after the
long press timeout.
|
PREDISPATCH
Signifies that the key is being predispatched.
|
SOFT_KEYBOARD
This mask is set if the key event was generated by a software keyboard.
|
START_TRACKING
Private control to determine when an app is tracking a key sequence.
|
TAINTED
Private flag that indicates when the system has detected that this key event
may be inconsistent with respect to the sequence of previously delivered key events,
such as when a key up event is sent but the key was not down.
|
TRACKING
Set for ACTION_UP when this event's key value is still being
tracked from its initial down.
|
VIRTUAL_HARD_KEY
This key event was generated by a virtual (on-screen) hard key area.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static KeyEventFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyEventFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyEventFlag SOFT_KEYBOARD
public static final KeyEventFlag KEEP_TOUCH_MODE
public static final KeyEventFlag FROM_SYSTEM
public static final KeyEventFlag EDITOR_ACTION
public static final KeyEventFlag CANCELED
public static final KeyEventFlag VIRTUAL_HARD_KEY
public static final KeyEventFlag LONG_PRESS
public static final KeyEventFlag CANCELED_LONG_PRESS
CANCELED
set because a long
press action was executed while it was down.public static final KeyEventFlag TRACKING
public static final KeyEventFlag FALLBACK
public static final KeyEventFlag PREDISPATCH
public static final KeyEventFlag START_TRACKING
public static final KeyEventFlag TAINTED
public static KeyEventFlag[] values()
for (KeyEventFlag c : KeyEventFlag.values()) System.out.println(c);
public static KeyEventFlag 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 namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()