-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum GestureGestures listen to finger gestures over the CameraView bounds and can be mapped to one or more camera controls 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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SCROLL_VERTICALVertical scroll gesture.This gesture can be mapped to continuous actions:- ZOOM - EXPOSURE_CORRECTION - FILTER_CONTROL_1 - FILTER_CONTROL_2 - NONE
SCROLL_HORIZONTALHorizontal scroll gesture.This gesture can be mapped to continuous actions:- ZOOM - EXPOSURE_CORRECTION - FILTER_CONTROL_1 - FILTER_CONTROL_2 - NONE
LONG_TAPLong tap gesture.This gesture can be mapped to one shot actions:- AUTO_FOCUS - TAKE_PICTURE - NONE
TAPSingle tap gesture, typically assigned to the focus control.This gesture can be mapped to one shot actions:- AUTO_FOCUS - TAKE_PICTURE - NONE
PINCHPinch gesture, typically assigned to the zoom control.This gesture can be mapped to continuous actions:- ZOOM - EXPOSURE_CORRECTION - FILTER_CONTROL_1 - FILTER_CONTROL_2 - NONE
-
Method Summary
Modifier and Type Method Description booleanisAssignableTo(@NonNull() GestureAction action)Whether this gesture can be assigned to the given GestureAction. static Array<Gesture>values()static GesturevalueOf(String name)-
-
Method Detail
-
isAssignableTo
boolean isAssignableTo(@NonNull() GestureAction action)
Whether this gesture can be assigned to the given GestureAction.
- Parameters:
action- the action to be checked
-
-
-
-