GestureDescription.Builder
public
static
class
GestureDescription.Builder
extends Object
| java.lang.Object | |
| ↳ | android.accessibilityservice.GestureDescription.Builder |
Builder for a GestureDescription
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
GestureDescription.Builder
|
addStroke(GestureDescription.StrokeDescription strokeDescription)
Adds a stroke to the gesture description. |
GestureDescription
|
build()
|
GestureDescription.Builder
|
setDisplayId(int displayId)
Sets the id of the display to dispatch gestures. |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder ()
Public methods
addStroke
public GestureDescription.Builder addStroke (GestureDescription.StrokeDescription strokeDescription)
Adds a stroke to the gesture description. Up to
GestureDescription.getMaxStrokeCount() paths may be
added to a gesture, and the total gesture duration (earliest path start time to latest
path end time) may not exceed GestureDescription.getMaxGestureDuration().
| Parameters | |
|---|---|
strokeDescription |
GestureDescription.StrokeDescription: the stroke to add.
This value cannot be null. |
| Returns | |
|---|---|
GestureDescription.Builder |
this |
setDisplayId
public GestureDescription.Builder setDisplayId (int displayId)
Sets the id of the display to dispatch gestures.
| Parameters | |
|---|---|
displayId |
int: The logical display id |
| Returns | |
|---|---|
GestureDescription.Builder |
this.
This value cannot be null. |