public enum Gesture extends java.lang.Enum<Gesture>
CameraView bounds and can be mapped
to one or more camera controls using XML attributes or CameraView.mapGesture(Gesture, GestureAction).
Not every gesture can control a certain action. For example, pinch gestures can only control
continuous values, such as zoom or AE correction. Single point gestures, on the other hand,
can only control point actions such as focusing or capturing a picture.| Enum Constant and Description |
|---|
LONG_TAP
Long tap gesture.
|
PINCH
Pinch gesture, typically assigned to the zoom control.
|
SCROLL_HORIZONTAL
Horizontal scroll gesture.
|
SCROLL_VERTICAL
Vertical scroll gesture.
|
TAP
Single tap gesture, typically assigned to the focus control.
|
| Modifier and Type | Method and Description |
|---|---|
static Gesture |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Gesture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gesture PINCH
GestureAction.ZOOM
- GestureAction.EXPOSURE_CORRECTION
- GestureAction.NONEpublic static final Gesture TAP
GestureAction.FOCUS
- GestureAction.FOCUS_WITH_MARKER
- GestureAction.CAPTURE
- GestureAction.NONEpublic static final Gesture LONG_TAP
GestureAction.FOCUS
- GestureAction.FOCUS_WITH_MARKER
- GestureAction.CAPTURE
- GestureAction.NONEpublic static final Gesture SCROLL_HORIZONTAL
GestureAction.ZOOM
- GestureAction.EXPOSURE_CORRECTION
- GestureAction.NONEpublic static final Gesture SCROLL_VERTICAL
GestureAction.ZOOM
- GestureAction.EXPOSURE_CORRECTION
- GestureAction.NONEpublic static Gesture[] values()
for (Gesture c : Gesture.values()) System.out.println(c);
public static Gesture 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