-
public final class AccessibilityServiceInfoCompatHelper for accessing features in AccessibilityServiceInfo.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intCAPABILITY_CAN_RETRIEVE_WINDOW_CONTENTpublic final static intCAPABILITY_CAN_REQUEST_TOUCH_EXPLORATIONpublic final static intCAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITYpublic final static intCAPABILITY_CAN_FILTER_KEY_EVENTSpublic final static intFEEDBACK_BRAILLEpublic final static intFEEDBACK_ALL_MASKpublic final static intFLAG_INCLUDE_NOT_IMPORTANT_VIEWSpublic final static intFLAG_REQUEST_TOUCH_EXPLORATION_MODEpublic final static intFLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITYpublic final static intFLAG_REPORT_VIEW_IDSpublic final static intFLAG_REQUEST_FILTER_KEY_EVENTS
-
Method Summary
Modifier and Type Method Description static StringloadDescription(@NonNull() AccessibilityServiceInfo info, @NonNull() PackageManager packageManager)The localized description of the accessibility service. static StringfeedbackTypeToString(int feedbackType)Returns the string representation of a feedback type. static StringflagToString(int flag)Returns the string representation of a flag. static intgetCapabilities(@NonNull() AccessibilityServiceInfo info)Returns the bit mask of capabilities this accessibility service has such asbeing able to retrieve the active window content, etc. static StringcapabilityToString(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.
-
-
-
-