語言

MotionEvent.GetPointerId(Int32) 方法

定義

在此事件中回傳與特定指標資料索引相關的指標識別碼。

[Android.Runtime.Register("getPointerId", "(I)I", "")]
public int GetPointerId(int pointerIndex);
[<Android.Runtime.Register("getPointerId", "(I)I", "")>]
member this.GetPointerId : int -> int

參數

pointerIndex
Int32

要取回的指標原始索引。 值可以從 0(第一個下行指標)到 #getPointerCount()-1。

傳回

取得指標ID操作的結果。

屬性

備註

在此事件中回傳與特定指標資料索引相關的指標識別碼。 識別碼告訴你與資料相關的實際指標編號,考慮到自當前手勢開始以來,個別指標的上下波動。

Java 文件 android.view.MotionEvent.getPointerId(int)。

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

適用於