public static enum TouchEvent.Type extends java.lang.Enum<TouchEvent.Type>
Enum Constant and Description |
---|
DOUBLETAP |
DOWN
Touch down event, fields: posX, posY, pressure
|
FLING |
HOVER_END
Finger was pulled away from the screen or touched the screen
Requires Android OS rev 14 or higher (Android 4.0 or higher)
|
HOVER_MOVE
Finger moved while still hovering over the screen without touching
Requires Android OS rev 14 or higher (Android 4.0 or higher)
|
HOVER_START
Finger started hovering over the screen without touching
Requires Android OS rev 14 or higher (Android 4.0 or higher)
|
IDLE |
KEY_DOWN
Virtual keyboard or hardware key event down, fields: keyCode, characters
|
KEY_MULTIPLE
Virtual keyboard or hardware key event up, fields: keyCode, characters
|
KEY_UP
Virtual keyboard or hardware key event up, fields: keyCode, characters
|
LONGPRESSED |
MOVE
Move/Drag event, fields: posX, posY, deltaX, deltaY, pressure
|
OUTSIDE |
SCALE_END
Two finger scale event end, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
|
SCALE_MOVE
Two finger scale event, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
|
SCALE_START
Two finger scale event start, fields: posX/posY = getFocusX/Y, scaleFactor, scaleSpan
|
SCROLL
Scroll event
|
SHOWPRESS
The user has performed a down MotionEvent and not performed a move or up yet.
|
TAP |
UP
Touch up event, fields: posX, posY, pressure
|
Modifier and Type | Method and Description |
---|---|
static TouchEvent.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TouchEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TouchEvent.Type DOWN
public static final TouchEvent.Type MOVE
public static final TouchEvent.Type UP
public static final TouchEvent.Type KEY_DOWN
public static final TouchEvent.Type KEY_UP
public static final TouchEvent.Type FLING
public static final TouchEvent.Type TAP
public static final TouchEvent.Type DOUBLETAP
public static final TouchEvent.Type LONGPRESSED
public static final TouchEvent.Type HOVER_START
public static final TouchEvent.Type HOVER_MOVE
public static final TouchEvent.Type HOVER_END
public static final TouchEvent.Type SCALE_START
public static final TouchEvent.Type SCALE_MOVE
public static final TouchEvent.Type SCALE_END
public static final TouchEvent.Type SCROLL
public static final TouchEvent.Type SHOWPRESS
public static final TouchEvent.Type OUTSIDE
public static final TouchEvent.Type IDLE
public static final TouchEvent.Type KEY_MULTIPLE
public static TouchEvent.Type[] values()
for (TouchEvent.Type c : TouchEvent.Type.values()) System.out.println(c);
public static TouchEvent.Type 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 null