-
public final class AccessibilityServiceInfoCompat
Helper for accessing features in AccessibilityServiceInfo.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT
public final static int
CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION
public final static int
CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY
public final static int
CAPABILITY_CAN_FILTER_KEY_EVENTS
public final static int
FEEDBACK_BRAILLE
public final static int
FEEDBACK_ALL_MASK
public final static int
FLAG_INCLUDE_NOT_IMPORTANT_VIEWS
public final static int
FLAG_REQUEST_TOUCH_EXPLORATION_MODE
public final static int
FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY
public final static int
FLAG_REPORT_VIEW_IDS
public final static int
FLAG_REQUEST_FILTER_KEY_EVENTS
-
Method Summary
Modifier and Type Method Description static String
loadDescription(@NonNull() AccessibilityServiceInfo info, @NonNull() PackageManager packageManager)
The localized description of the accessibility service. 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(@NonNull() AccessibilityServiceInfo info)
Returns the bit mask of capabilities this accessibility service has such asbeing able to retrieve the active window content, etc. static String
capabilityToString(int capability)
Returns the string representation of a capability. -
-
Method Detail
-
loadDescription
@Nullable() static String loadDescription(@NonNull() AccessibilityServiceInfo info, @NonNull() PackageManager packageManager)
The localized description of the accessibility service.
Statically set frommeta-data.
- Parameters:
info
- The service info of interestpackageManager
- The current package manager
-
feedbackTypeToString
@NonNull() static String feedbackTypeToString(int feedbackType)
Returns the string representation of a feedback type. For example, FEEDBACK_SPOKEN is represented by thestring FEEDBACK_SPOKEN.
- Parameters:
feedbackType
- The feedback type.
-
flagToString
@Nullable() static String flagToString(int flag)
Returns the string representation of a flag. For example, DEFAULT is represented by thestring DEFAULT.
- Parameters:
flag
- The flag.
-
getCapabilities
static int getCapabilities(@NonNull() AccessibilityServiceInfo info)
Returns the bit mask of capabilities this accessibility service has such asbeing able to retrieve the active window content, etc.
- Parameters:
info
- The service info whose capabilities to get.
-
capabilityToString
@NonNull() static String capabilityToString(int capability)
Returns the string representation of a capability. For example, CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT is representedby the string CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT.
- Parameters:
capability
- The capability.
-
-
-
-