共用方式為


TouchInteractionController.RequestDragging(Int32) 方法

定義

如果 AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE 已啟用 和 If {@link AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE ,而且已新增至少一個回呼,此函式會告知架構使用指定的指標起始拖曳互動。

[Android.Runtime.Register("requestDragging", "(I)V", "", ApiSince=33)]
public void RequestDragging(int pointerId);
[<Android.Runtime.Register("requestDragging", "(I)V", "", ApiSince=33)>]
member this.RequestDragging : int -> unit

參數

pointerId
Int32

要傳遞至其餘輸入管線的指標。 如果指標標識碼有效,但實際上不存在在螢幕上,則會忽略它。

屬性

備註

如果 AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE 已啟用 和 If {@link AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE ,而且已新增至少一個回呼,此函式會告知架構使用指定的指標起始拖曳互動。 指標的移動會傳遞至輸入管線的其餘部分。 拖曳通常用來執行雙指捲動。

android.accessibilityservice.TouchInteractionController.requestDragging(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於