AccessibilityServiceInfoCompat

public final class AccessibilityServiceInfoCompat
extends Object

java.lang.Object
   ↳ androidx.core.accessibilityservice.AccessibilityServiceInfoCompat


Helper for accessing features in AccessibilityServiceInfo.

Summary

Constants

int CAPABILITY_CAN_FILTER_KEY_EVENTS

Capability: This accessibility service can filter the key event stream.

int CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY

Capability: This accessibility service can request enhanced web accessibility enhancements.

int CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION

Capability: This accessibility service can request touch exploration mode in which touched items are spoken aloud and the UI can be explored via gestures.

int CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT

Capability: This accessibility service can retrieve the active window content.

int FEEDBACK_ALL_MASK

Mask for all feedback types.

int FEEDBACK_BRAILLE

Denotes braille feedback.

int FLAG_INCLUDE_NOT_IMPORTANT_VIEWS

If this flag is set the system will regard views that are not important for accessibility in addition to the ones that are important for accessibility.

int FLAG_REPORT_VIEW_IDS

This flag requests that the AccessibilityNodeInfos obtained by an AccessibilityService contain the id of the source view.

int FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY

This flag requests from the system to enable web accessibility enhancing extensions.

int FLAG_REQUEST_FILTER_KEY_EVENTS

This flag requests from the system to filter key events.

int FLAG_REQUEST_TOUCH_EXPLORATION_MODE

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

Public methods

static String capabilityToString(int capability)

Returns the string representation of a capability.

static String feedbackTypeToString(int feedbackType)

Returns the string representation of a feedback type.

static String flagToString(int flag)

Returns the string representation of a flag.

static int getCapabilities(AccessibilityServiceInfo info)

Returns the bit mask of capabilities thi