Most visited

Recently visited

Added in API level 24

GestureDescription.Builder

public static class GestureDescription.Builder
extends Object

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


Builder for a GestureDescription

Summary

Public constructors

GestureDescription.Builder()

Public methods

GestureDescription.Builder addStroke(GestureDescription.StrokeDescription strokeDescription)

Add a stroke to the gesture description.

GestureDescription build()

Inherited methods

From class java.lang.Object

Public constructors

GestureDescription.Builder

Added in API level 24
GestureDescription.Builder ()

Public methods

addStroke

Added in API level 24
GestureDescription.Builder addStroke (GestureDescription.StrokeDescription strokeDescription)

Add a stroke to the gesture description. Up to 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 getMaxGestureDuration().

Parameters
strokeDescription GestureDescription.StrokeDescription: the stroke to add.
Returns
GestureDescription.Builder this

build

Added in API level 24
GestureDescription build ()

Returns
GestureDescription

Hooray!