Added in API level 24

Builder

class Builder
kotlin.Any
   ↳ android.accessibilityservice.GestureDescription.Builder

Builder for a GestureDescription

Summary

Public constructors

Public methods
open GestureDescription.Builder!

Adds a stroke to the gesture description.

open GestureDescription!

open GestureDescription.Builder
setDisplayId(displayId: Int)

Sets the id of the display to dispatch gestures.

Public constructors

Builder

Builder()

Public methods

addStroke

Added in API level 24
open fun addStroke(strokeDescription: GestureDescription.StrokeDescription): GestureDescription.Builder!

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.
Return
GestureDescription.Builder! this

build

Added in API level 24
open fun build(): GestureDescription!

setDisplayId

Added in API level 30
open fun setDisplayId(displayId: Int): GestureDescription.Builder

Sets the id of the display to dispatch gestures.

Parameters
displayId Int: The logical display id
Return
GestureDescription.Builder this This value cannot be null.