-
public enum GestureActionGestures actions are actions over camera controls that can be mapped to certain gestures over the screen, using XML attributes or mapGesture. 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.
-
-
Field Summary
Fields Modifier and Type Field Description final static GestureActionDEFAULT_PINCHfinal static GestureActionDEFAULT_TAPfinal static GestureActionDEFAULT_LONG_TAPfinal static GestureActionDEFAULT_SCROLL_HORIZONTALfinal static GestureActionDEFAULT_SCROLL_VERTICAL
-
Constructor Summary
Constructors Constructor Description GestureAction(int value, GestureType type)
-
Enum Constant Summary
Enum Constants Enum Constant Description NONENo action. This can be mapped to any gesture to disable it.
AUTO_FOCUSTouch metering control, typically assigned to the tap gesture.This action can be mapped to one shot gestures:- TAP - LONG_TAP To control marker drawing, please see setAutoFocusMarker
TAKE_PICTUREWhen triggered, this action will fire a picture shoot.This action can be mapped to one shot gestures:- TAP - LONG_TAP
TAKE_PICTURE_SNAPSHOTWhen triggered, this action will fire a picture snapshot.This action can be mapped to one shot gestures:- TAP - LONG_TAP
ZOOMZoom control, typically assigned to the pinch gesture.This action can be mapped to continuous gestures:- PINCH - SCROLL_HORIZONTAL - SCROLL_VERTICAL
EXPOSURE_CORRECTIONExposure correction control.This action can be mapped to continuous gestures:- PINCH - SCROLL_HORIZONTAL - SCROLL_VERTICAL
FILTER_CONTROL_1Controls the first parameter of a real-time Filter,if it accepts one. This action can be mapped to continuous gestures:- PINCH - SCROLL_HORIZONTAL - SCROLL_VERTICAL
FILTER_CONTROL_2Controls the second parameter of a real-time Filter,if it accepts one. This action can be mapped to continuous gestures:- PINCH - SCROLL_HORIZONTAL - SCROLL_VERTICAL
-
Method Summary
Modifier and Type Method Description intvalue()GestureTypetype()static GestureActionfromValue(int value)static Array<GestureAction>values()static GestureActionvalueOf(String name)-
-
Constructor Detail
-
GestureAction
GestureAction(int value, GestureType type)
-
-
Method Detail
-
value
int value()
-
type
@NonNull() GestureType type()
-
fromValue
@Nullable() static GestureAction fromValue(int value)
-
values
static Array<GestureAction> values()
-
valueOf
static GestureAction valueOf(String name)
-
-
-
-