java.lang.Object | |
↳ | android.accessibilityservice.AccessibilityServiceInfo |
This class describes an AccessibilityService
. The system notifies an
AccessibilityService
for AccessibilityEvent
s
according to the information encapsulated in this class.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT | If an AccessibilityService is the default for a given type. |
|||||||||
int | FEEDBACK_ALL_MASK | Mask for all feedback types. | |||||||||
int | FEEDBACK_AUDIBLE | Denotes audible (not spoken) feedback. | |||||||||
int | FEEDBACK_GENERIC | Denotes generic feedback. | |||||||||
int | FEEDBACK_HAPTIC | Denotes haptic feedback. | |||||||||
int | FEEDBACK_SPOKEN | Denotes spoken feedback. | |||||||||
int | FEEDBACK_VISUAL | Denotes visual feedback. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
eventTypes | The event types an AccessibilityService is interested in. |
||||||||||
feedbackType | The feedback type an AccessibilityService provides. |
||||||||||
flags | This field represents a set of flags used for configuring an
AccessibilityService . |
||||||||||
notificationTimeout | The timeout after the most recent event of a given type before an
AccessibilityService is notified. |
||||||||||
packageNames | The package names an AccessibilityService is interested in. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Returns the string representation of a feedback type.
| |||||||||||
Returns the string representation of a flag.
| |||||||||||
Whether this service can retrieve the current window's content.
| |||||||||||
Description of the accessibility service.
| |||||||||||
The accessibility service id.
| |||||||||||
The service
ResolveInfo . | |||||||||||
The settings activity name.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
If an AccessibilityService
is the default for a given type.
Default service is invoked only if no package specific one exists. In case of
more than one package specific service only the earlier registered is notified.
Mask for all feedback types.
Denotes audible (not spoken) feedback.
Denotes generic feedback.
Denotes haptic feedback.
Denotes spoken feedback.
Denotes visual feedback.
The event types an AccessibilityService
is interested in.
Can be dynamically set at runtime.
TYPE_VIEW_CLICKED
TYPE_VIEW_LONG_CLICKED
TYPE_VIEW_FOCUSED
TYPE_VIEW_SELECTED
TYPE_VIEW_TEXT_CHANGED
TYPE_WINDOW_STATE_CHANGED
TYPE_NOTIFICATION_STATE_CHANGED
TYPE_TOUCH_EXPLORATION_GESTURE_START
TYPE_TOUCH_EXPLORATION_GESTURE_END
TYPE_VIEW_HOVER_ENTER
TYPE_VIEW_HOVER_EXIT
TYPE_VIEW_SCROLLED
TYPE_VIEW_TEXT_SELECTION_CHANGED
TYPE_WINDOW_CONTENT_CHANGED
The feedback type an AccessibilityService
provides.
Can be dynamically set at runtime.
This field represents a set of flags used for configuring an
AccessibilityService
.
Can be dynamically set at runtime.
The timeout after the most recent event of a given type before an
AccessibilityService
is notified.
Can be dynamically set at runtime..
Note: The event notification timeout is useful to avoid propagating events to the client too frequently since this is accomplished via an expensive interprocess call. One can think of the timeout as a criteria to determine when event generation has settled down.
The package names an AccessibilityService
is interested in. Setting
to null
is equivalent to all packages.
Can be dynamically set at runtime.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Returns the string representation of a feedback type. For example,
FEEDBACK_SPOKEN
is represented by the string FEEDBACK_SPOKEN.
feedbackType | The feedback type. |
---|
Returns the string representation of a flag. For example,
DEFAULT
is represented by the string DEFAULT.
flag | The flag. |
---|
Whether this service can retrieve the current window's content.
Statically set from
meta-data
.
Description of the accessibility service.
Statically set from
meta-data
.
The accessibility service id.
Generated by the system.
The service ResolveInfo
.
Generated by the system.
The settings activity name.
Statically set from
meta-data
.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
parcel | The Parcel in which the object should be written. |
---|---|
flagz | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|