public enum GestureAction extends java.lang.Enum<GestureAction>
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 |
|---|
CAPTURE
When triggered, this action will fire a picture shoot.
|
EXPOSURE_CORRECTION
Exposure correction control.
|
FOCUS
Auto focus control, typically assigned to the tap gesture.
|
FOCUS_WITH_MARKER
Auto focus control, typically assigned to the tap gesture.
|
NONE
No action.
|
ZOOM
Zoom control, typically assigned to the pinch gesture.
|
| Modifier and Type | Method and Description |
|---|---|
static GestureAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GestureAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GestureAction NONE
public static final GestureAction FOCUS
Gesture.TAP
- Gesture.LONG_TAPpublic static final GestureAction FOCUS_WITH_MARKER
FOCUS, this will draw a default marker on screen.
This action can be mapped to:
- Gesture.TAP
- Gesture.LONG_TAPpublic static final GestureAction CAPTURE
Gesture.TAP
- Gesture.LONG_TAPpublic static final GestureAction ZOOM
Gesture.PINCH
- Gesture.SCROLL_HORIZONTAL
- Gesture.SCROLL_VERTICALpublic static final GestureAction EXPOSURE_CORRECTION
Gesture.PINCH
- Gesture.SCROLL_HORIZONTAL
- Gesture.SCROLL_VERTICALpublic static GestureAction[] values()
for (GestureAction c : GestureAction.values()) System.out.println(c);
public static GestureAction 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