AccessibilityServiceInfo.MotionEventSources 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳無障礙服務想要監聽的來源的位元遮罩 android.view.InputDevice ,以取得通用 android.view.MotionEvents。 -或- 設定無障礙服務想要監聽的來源位元遮罩 android.view.InputDevice ,用於通用 android.view.MotionEvents。
public virtual Android.Views.InputSourceType MotionEventSources { [Android.Runtime.Register("getMotionEventSources", "()I", "GetGetMotionEventSourcesHandler", ApiSince=34)] get; [Android.Runtime.Register("setMotionEventSources", "(I)V", "GetSetMotionEventSources_IHandler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getMotionEventSources", "()I", "GetGetMotionEventSourcesHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setMotionEventSources", "(I)V", "GetSetMotionEventSources_IHandler", ApiSince=34)>]
member this.MotionEventSources : Android.Views.InputSourceType with get, set
屬性值
值為 0 或下列組合:; ; ; TouchpadJoystickSensorMouseRelativeRotaryEncoderTrackballTouchNavigationBluetoothStylusStylusMouseTouchscreen
- 屬性
備註
財產取得者文件:
回傳無障礙服務想要監聽的來源的位元遮罩 android.view.InputDevice ,以取得通用 android.view.MotionEvents。
Java 文件 android.accessibilityservice.AccessibilityServiceInfo.getMotionEventSources()。
屬性設定文件:
設定無障礙服務想要聆聽的來源的位元遮罩 android.view.InputDevice ,針對通用 android.view.MotionEvents。
包含 android.view.InputDevice 一個不傳送 android.view.MotionEvents 的來源,實際上是該來源的 no-op,因為你不會從該來源接收任何事件。
完整來源定義請參見 android.view.InputDevice 。 許多輸入裝置會從多種來源傳送 android.view.InputEvents,因此你可能需要包含多個 android.view.MotionEvent 來源,除了用 AccessibilityService#onKeyEvent 來聽 s 之外 android.view.KeyEvent。
<strong>注意:</strong>android.view.InputDevice source 包含 source class 位元,會使位元旗標移除操作變得複雜。 要移除特定來源,你應該用位元或操作重建整個值。
Java 文件 android.accessibilityservice.AccessibilityServiceInfo.setMotionEventSources(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。