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

Public constructors

GestureDescription.Builder

added in API level 24
public GestureDescription.Builder ()

Public methods

addStroke

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

Add 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 must never be null.

Returns
GestureDescription.Builder this

build

added in API level 24
public GestureDescription build ()

Returns
GestureDescription