# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Methods | Inherited Methods

# GestureDescription

`public final class GestureDescription`
`extends Object` ``

java.lang.Object
↳ | android.accessibilityservice.GestureDescription

Accessibility services with the `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 and will be dispatched to the specified display.

Spatial dimensions throughout are in screen pixels. Time is measured in milliseconds.

## Summary

### Nested classes
`class` | `GestureDescription.Builder` Builder for a `GestureDescription`
`class` | `GestureDescription.StrokeDescription` Immutable description of stroke that can be part of a gesture.

### Public methods
`int` | `getDisplayId()` Returns the ID of the display this gesture is sent on, for use with `DisplayManager.getDisplay(int)`.
`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`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public methods

### getDisplayId

    public int getDisplayId ()

Returns the ID of the display this gesture is sent on, for use with `DisplayManager.getDisplay(int)`.

Returns
`int` | The logical display id.

### getMaxGestureDuration

    public static long getMaxGestureDuration ()

Get the upper limit on a gesture's duration.

Returns
`long` | The maximum duration in milliseconds.

### getMaxStrokeCount

    public static int getMaxStrokeCount ()

Get the upper limit for the number of strokes a gesture may contain.

Returns
`int` | The maximum number of strokes.

### getStroke

    public GestureDescription.StrokeDescription getStroke (int index)

Read a stroke from the gesture

Parameters
`index` | `int`: the index of the stroke Value is 0 or greater

Returns
`GestureDescription.StrokeDescription` | A description of the stroke.

### getStrokeCount

    public int getStrokeCount ()

Get the number of stroke in the gesture.

Returns
`int` | the number of strokes in this gesture

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*