語言

GestureDescription.StrokeDescription 建構函式

定義

多載

名稱 Description
GestureDescription.StrokeDescription(IntPtr, JniHandleOwnership)

建立一個受管理實例,代表一個現有的 Java 物件。

GestureDescription.StrokeDescription(Path, Int64, Int64)

會產生帶有路徑、相對於手勢的起始時間和持續時間的筆觸。

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

建立帶有路徑、時間點及旗標的筆劃,指示筆劃是否會在下一個手勢繼續。

GestureDescription.StrokeDescription(IntPtr, JniHandleOwnership)

建立一個受管理實例,代表一個現有的 Java 物件。

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

參數

javaReference
IntPtr

nativeint

JNI 對 Java 物件的參考。

transfer
JniHandleOwnership

說明JNI參考的所有權是否轉移至此實例。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

參數

path
Path

該走的道路。 必須只有一個輪廓。 路徑的界限不能是負的。 這條路不能空無一物。 如果路徑長度為零(例如單 moveTo()線),則該筆劃是不移動的觸碰。

startTime
Int64

從手勢開始到筆觸應該開始的時間,以毫秒為單位。 不得為負數。

duration
Int64

行程通過路徑所需的時間,以毫秒計。 必須是正數。

屬性

備註

Java 文件 android.accessibilityservice.GestureDescription.StrokeDescription.GestureDescription$StrokeDescription(android.graphics.Path, long, long)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

參數

path
Path

該走的道路。 必須只有一個輪廓。 路徑的界限不能是負的。 這條路不能空無一物。 如果路徑長度為零(例如單 moveTo()線),則該筆劃是不移動的觸碰。

startTime
Int64

從手勢開始到筆觸應該開始的時間,以毫秒為單位。 不得為負數。

duration
Int64

行程通過路徑所需的時間,以毫秒計。 必須是正數。

willContinue
Boolean

true 如果這個筆觸會被下一個手勢 false 繼續,否則。 持續的筆觸會在手勢完成時保持指尖向下。

屬性

備註

Java 文件 android.accessibilityservice.GestureDescription.StrokeDescription.GestureDescription$StrokeDescription(android.graphics.Path, long, long, boolean)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於