public
final
class
GestureDescription
extends Object
java.lang.Object | |
↳ | android.accessibilityservice.GestureDescription |
Accessibility services with the
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.
Nested classes | |
---|---|
class |
GestureDescription.Builder
Builder for a |
class |
GestureDescription.StrokeDescription
Immutable description of stroke that can be part of a gesture. |
Public methods | |
---|---|
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. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
long getMaxGestureDuration ()
Get the upper limit on a gesture's duration.
Returns | |
---|---|
long |
The maximum duration in milliseconds. |
int getMaxStrokeCount ()
Get the upper limit for the number of strokes a gesture may contain.
Returns | |
---|---|
int |
The maximum number of strokes. |
GestureDescription.StrokeDescription getStroke (int index)
Read a stroke from the gesture
Parameters | |
---|---|
index |
int :
the index of the stroke |
Returns | |
---|---|
GestureDescription.StrokeDescription |
A description of the stroke. |
int getStrokeCount ()
Get the number of stroke in the gesture.
Returns | |
---|---|
int |
the number of strokes in this gesture |