public final class GestureDescription extends Object
android.R.styleable#AccessibilityService_canPerformGestures
property can dispatch
gestures. This class describes those gestures. Gestures are made up of one or more strokes.
Gestures are immutable once built.
Spatial dimensions throughout are in screen pixels. Time is measured in milliseconds.
Modifier and Type | Class and Description |
---|---|
static class |
GestureDescription.Builder
Builder for a
GestureDescription |
static class |
GestureDescription.GestureStep
A step along a gesture.
|
static class |
GestureDescription.MotionEventGenerator
Class to convert a GestureDescription to a series of MotionEvents.
|
static class |
GestureDescription.StrokeDescription
Immutable description of stroke that can be part of a gesture.
|
static class |
GestureDescription.TouchPoint
The location of a finger for gesture dispatch
|
Modifier and Type | Method and Description |
---|---|
static long |
getMaxGestureDuration()
Get the upper limit on a gesture's duration.
|
static int |
getMaxStrokeCount()
Get the upper limit for the number of strokes a gesture may contain.
|
GestureDescription.StrokeDescription |
getStroke(int index)
Read a stroke from the gesture
|
int |
getStrokeCount()
Get the number of stroke in the gesture.
|
public static int getMaxStrokeCount()
public static long getMaxGestureDuration()
public int getStrokeCount()
public GestureDescription.StrokeDescription getStroke(int index)
index
- the index of the stroke