public class

AccessibilityServiceInfoCompat

extends Object
java.lang.Object
   ↳ android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat

Class Overview

Helper for accessing features in AccessibilityService introduced after API level 4 in a backwards compatible fashion.

Summary

Constants
int FEEDBACK_ALL_MASK Mask for all feedback types.
Public Methods
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 boolean getCanRetrieveWindowContent(AccessibilityServiceInfo info)
Whether this service can retrieve the current window's content.
static String getDescription(AccessibilityServiceInfo info)
Description of the accessibility service.
static String getId(AccessibilityServiceInfo info)
The accessibility service id.
static ResolveInfo getResolveInfo(AccessibilityServiceInfo info)
The service ResolveInfo.
static String getSettingsActivityName(AccessibilityServiceInfo info)
The settings activity name.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int FEEDBACK_ALL_MASK

Mask for all feedback types.

Constant Value: -1 (0xffffffff)

Public Methods

public static String feedbackTypeToString (int feedbackType)

Returns the string representation of a feedback type. For example, FEEDBACK_SPOKEN is represented by the string FEEDBACK_SPOKEN.

Parameters
feedbackType The feedback type.
Returns
  • The string representation.

public static String flagToString (int flag)

Returns the string representation of a flag. For example, DEFAULT is represented by the string DEFAULT.

Parameters
flag The flag.
Returns
  • The string representation.

public static boolean getCanRetrieveWindowContent (AccessibilityServiceInfo info)

Whether this service can retrieve the current window's content.

Statically set from meta-data.

Returns
  • True window content can be retrieved.

public static String getDescription (AccessibilityServiceInfo info)

Description of the accessibility service.

Statically set from meta-data.

Returns
  • The description.

public static String getId (AccessibilityServiceInfo info)

The accessibility service id.

Generated by the system.

Returns
  • The id.

public static ResolveInfo getResolveInfo (AccessibilityServiceInfo info)

The service ResolveInfo.

Generated by the system.

Returns
  • The info.

public static String getSettingsActivityName (AccessibilityServiceInfo info)

The settings activity name.

Statically set from meta-data.

Returns
  • The settings activity name.