-
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.
-
-
Constructor Summary
Constructors Constructor Description Gesture(GestureType type)
-
Enum Constant Summary
Enum Constants Enum Constant Description 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
TAPSingle tap gesture, typically assigned to the focus control.This gesture can be mapped to one shot actions:- AUTO_FOCUS - TAKE_PICTURE - NONE
LONG_TAPLong tap gesture.This gesture can be mapped to one shot actions:- AUTO_FOCUS - TAKE_PICTURE - NONE
SCROLL_HORIZONTALHorizontal scroll gesture.This gesture can be mapped to continuous actions:- ZOOM - EXPOSURE_CORRECTION - FILTER_CONTROL_1 - FILTER_CONTROL_2 - NONE
SCROLL_VERTICALVertical scroll gesture.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(GestureAction action)Whether this gesture can be assigned to the given GestureAction. static Array<Gesture>values()static GesturevalueOf(String name)-
-
Constructor Detail
-
Gesture
Gesture(GestureType type)
-
-
Method Detail
-
isAssignableTo
boolean isAssignableTo(GestureAction action)
Whether this gesture can be assigned to the given GestureAction.
- Parameters:
action- the action to be checked
-
-
-
-