public static class GestureDescription.Builder
extends Object
java.lang.Object | |
↳ | android.accessibilityservice.GestureDescription.Builder |
建设者为 GestureDescription
Public constructors |
|
---|---|
GestureDescription.Builder() |
Public methods |
|
---|---|
GestureDescription.Builder |
addStroke(GestureDescription.StrokeDescription strokeDescription) 为手势描述添加描边。 |
GestureDescription |
build() |
Inherited methods |
|
---|---|
From class java.lang.Object
|
GestureDescription.Builder addStroke (GestureDescription.StrokeDescription strokeDescription)
为手势描述添加描边。 可以将多达getMaxStrokeCount()
条路径添加到手势,并且总手势持续时间(最早路径开始时间到最近路径结束时间)不得超过getMaxGestureDuration()
。
Parameters | |
---|---|
strokeDescription |
GestureDescription.StrokeDescription : the stroke to add. |
Returns | |
---|---|
GestureDescription.Builder |
this |