public static class GestureDescription.Builder extends Object
GestureDescription
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GestureDescription.Builder |
addStroke(GestureDescription.StrokeDescription strokeDescription)
Add a stroke to the gesture description.
|
GestureDescription |
build() |
public GestureDescription.Builder addStroke(GestureDescription.StrokeDescription strokeDescription)
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()
.strokeDescription
- the stroke to add.public GestureDescription build()