MotionEvent.GetPointerId(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在此事件中回傳與特定指標資料索引相關的指標識別碼。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。