Udostępnij za pośrednictwem


AccessibilityServiceInfo.FlagRequestTouchExplorationMode Field

Definition

Caution

This constant will be removed in the future version. Use Android.AccessibilityServices.AccessibilityServiceFlags enum directly instead of this field.

This flag requests that the system gets into touch exploration mode.

[Android.Runtime.Register("FLAG_REQUEST_TOUCH_EXPLORATION_MODE")]
[System.Obsolete("This constant will be removed in the future version. Use Android.AccessibilityServices.AccessibilityServiceFlags enum directly instead of this field.", true)]
public const Android.AccessibilityServices.AccessibilityServiceFlags FlagRequestTouchExplorationMode = 4;
[<Android.Runtime.Register("FLAG_REQUEST_TOUCH_EXPLORATION_MODE")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.AccessibilityServices.AccessibilityServiceFlags enum directly instead of this field.", true)>]
val mutable FlagRequestTouchExplorationMode : Android.AccessibilityServices.AccessibilityServiceFlags

Field Value

Value = 4

Implements

Attributes

Remarks

This flag requests that the system gets into touch exploration mode. In this mode a single finger moving on the screen behaves as a mouse pointer hovering over the user interface. The system will also detect certain gestures performed on the touch screen and notify this service. The system will enable touch exploration mode if there is at least one accessibility service that has this flag set. Hence, clearing this flag does not guarantee that the device will not be in touch exploration mode since there may be another enabled service that requested it.

For accessibility services targeting Android 4.3 (API level 18) or higher that want to set this flag have to declare this capability in their meta-data by setting the attribute android.R.attr#canRequestTouchExplorationMode canRequestTouchExplorationMode to true. Otherwise, this flag will be ignored. For how to declare the meta-data of a service refer to AccessibilityService#SERVICE_META_DATA.

Services targeting Android 4.2.2 (API level 17) or lower will work normally. In other words, the first time they are run, if this flag is specified, a dialog is shown to the user to confirm enabling explore by touch.

Java documentation for android.accessibilityservice.AccessibilityServiceInfo.FLAG_REQUEST_TOUCH_EXPLORATION_MODE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to