GestureDescription.StrokeDescription Constructors

Definition

Overloads

GestureDescription.StrokeDescription(IntPtr, JniHandleOwnership)
GestureDescription.StrokeDescription(Path, Int64, Int64)
GestureDescription.StrokeDescription(Path, Int64, Int64, Boolean)

GestureDescription.StrokeDescription(IntPtr, JniHandleOwnership)

protected StrokeDescription (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.AccessibilityServices.GestureDescription.StrokeDescription : nativeint * Android.Runtime.JniHandleOwnership -> Android.AccessibilityServices.GestureDescription.StrokeDescription

Parameters

javaReference
IntPtr

nativeint

Remarks

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

GestureDescription.StrokeDescription(Path, Int64, Int64)

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;JJ)V", "", ApiSince=24)]
public StrokeDescription (Android.Graphics.Path path, long startTime, long duration);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;JJ)V", "", ApiSince=24)>]
new Android.AccessibilityServices.GestureDescription.StrokeDescription : Android.Graphics.Path * int64 * int64 -> Android.AccessibilityServices.GestureDescription.StrokeDescription

Parameters

path
Path

The path to follow. Must have exactly one contour. The bounds of the path must not be negative. The path must not be empty. If the path has zero length (for example, a single moveTo()), the stroke is a touch that doesn't move.

startTime
Int64

The time, in milliseconds, from the time the gesture starts to the time the stroke should start. Must not be negative.

duration
Int64

The duration, in milliseconds, the stroke takes to traverse the path. Must be positive.

Attributes

Remarks

Java documentation for android.accessibilityservice.GestureDescription.StrokeDescription.GestureDescription$StrokeDescription(android.graphics.Path, long, long).

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

GestureDescription.StrokeDescription(Path, Int64, Int64, Boolean)

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;JJZ)V", "", ApiSince=26)]
public StrokeDescription (Android.Graphics.Path path, long startTime, long duration, bool willContinue);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;JJZ)V", "", ApiSince=26)>]
new Android.AccessibilityServices.GestureDescription.StrokeDescription : Android.Graphics.Path * int64 * int64 * bool -> Android.AccessibilityServices.GestureDescription.StrokeDescription

Parameters

path
Path

The path to follow. Must have exactly one contour. The bounds of the path must not be negative. The path must not be empty. If the path has zero length (for example, a single moveTo()), the stroke is a touch that doesn't move.

startTime
Int64

The time, in milliseconds, from the time the gesture starts to the time the stroke should start. Must not be negative.

duration
Int64

The duration, in milliseconds, the stroke takes to traverse the path. Must be positive.

willContinue
Boolean

true if this stroke will be continued by one in the next gesture false otherwise. Continued strokes keep their pointers down when the gesture completes.

Attributes

Remarks

Java documentation for android.accessibilityservice.GestureDescription.StrokeDescription.GestureDescription$StrokeDescription(android.graphics.Path, long, long, boolean).

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