Class: StrokeDescription
10/22/22Less than 1 minute
accessibility.StrokeDescription
Describes a stroke gesture (polyline path, duration, optional start delay) for accessibility GestureDescription APIs.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
new StrokeDescription(points, duration, delay?)
Builds a stroke from a list of points and timing.
Parameters
| Name | Type | Description |
|---|---|---|
points | Point[] | Screen path as an ordered list of points. |
duration | number | Total stroke duration in milliseconds. |
delay? | number | Optional delay before the stroke starts, in milliseconds. |
Properties
points
Readonlypoints:Point[]
The path as read-only point coordinates.
duration
Readonlyduration:number
Stroke length in milliseconds.
delay
Readonlydelay:number
Pre-start delay in milliseconds.
Methods
toAndroidStrokeDescription
toAndroidStrokeDescription()
Returns
android.accessibility.GestureDescription.StrokeDescription
The underlying Android StrokeDescription used when building a full GestureDescription.
