Dil

GestureDescription.Builder.AddStroke Method

Definition

Adds a stroke to the gesture description.

[Android.Runtime.Register("addStroke", "(Landroid/accessibilityservice/GestureDescription$StrokeDescription;)Landroid/accessibilityservice/GestureDescription$Builder;", "GetAddStroke_Landroid_accessibilityservice_GestureDescription_StrokeDescription_Handler", ApiSince=24)]
public virtual Android.AccessibilityServices.GestureDescription.Builder? AddStroke(Android.AccessibilityServices.GestureDescription.StrokeDescription strokeDescription);
[<Android.Runtime.Register("addStroke", "(Landroid/accessibilityservice/GestureDescription$StrokeDescription;)Landroid/accessibilityservice/GestureDescription$Builder;", "GetAddStroke_Landroid_accessibilityservice_GestureDescription_StrokeDescription_Handler", ApiSince=24)>]
abstract member AddStroke : Android.AccessibilityServices.GestureDescription.StrokeDescription -> Android.AccessibilityServices.GestureDescription.Builder
override this.AddStroke : Android.AccessibilityServices.GestureDescription.StrokeDescription -> Android.AccessibilityServices.GestureDescription.Builder

Parameters

strokeDescription
GestureDescription.StrokeDescription

the stroke to add. This value cannot be null.

Returns

this

Attributes

Remarks

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().

Android reference for android.accessibilityservice.GestureDescription.Builder.addStroke.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to