java.lang.Object | |
↳ | android.view.accessibility.AccessibilityWindowInfo |
This class represents a state snapshot of a window for accessibility purposes. The screen content contains one or more windows where some windows can be descendants of other windows, which is the windows are hierarchically ordered. Note that there is no root window. Hence, the screen content can be seen as a collection of window trees.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TYPE_ACCESSIBILITY_OVERLAY |
Window type: Windows that are overlaid only by an AccessibilityService for interception of
user interactions without changing the windows an accessibility service
can introspect.
|
|||||||||
int | TYPE_APPLICATION | Window type: This is an application window. | |||||||||
int | TYPE_INPUT_METHOD | Window type: This is an input method window. | |||||||||
int | TYPE_SYSTEM | Window type: This is an system window. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Compares this instance with the specified object and indicates if they
are equal.
| |||||||||||
Gets the bounds of this window in the screen.
| |||||||||||
Gets the child window at a given index.
| |||||||||||
Gets the number of child windows.
| |||||||||||
Gets the unique window id.
| |||||||||||
Gets the layer which determines the Z-order of the window.
| |||||||||||
Gets the parent window if such.
| |||||||||||
Gets the root node in the window's hierarchy.
| |||||||||||
Gets the type of the window.
| |||||||||||
Returns an integer hash code for this object.
| |||||||||||
Gets if this window has accessibility focus.
| |||||||||||
Gets if this window is active.
| |||||||||||
Gets if this window has input focus.
| |||||||||||
Returns a cached instance if such is available or a new one is
created.
| |||||||||||
Returns a cached instance if such is available or a new one is
created.
| |||||||||||
Return an instance back to be reused.
| |||||||||||
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
|
Window type: Windows that are overlaid only by an AccessibilityService
for interception of
user interactions without changing the windows an accessibility service
can introspect. In particular, an accessibility service can introspect
only windows that a sighted user can interact with which they can touch
these windows or can type into these windows. For example, if there
is a full screen accessibility overlay that is touchable, the windows
below it will be introspectable by an accessibility service regardless
they are covered by a touchable window.
Window type: This is an application window. Such a window shows UI for interacting with an application.
Window type: This is an input method window. Such a window shows UI for inputting text such as keyboard, suggestions, etc.
Window type: This is an system window. Such a window shows UI for interacting with the system.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Compares this instance with the specified object and indicates if they
are equal. In order to be equal, o
must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true
only if this ==
o
. See Writing a correct
equals
method
if you intend implementing your own equals
method.
The general contract for the equals
and hashCode()
methods is that if equals
returns true
for
any two objects, then hashCode()
must return the same value for
these objects. This means that subclasses of Object
usually
override either both methods or neither of them.
obj | the object to compare this instance with. |
---|
true
if the specified object is equal to this Object
; false
otherwise.Gets the bounds of this window in the screen.
outBounds | The out window bounds. |
---|
Gets the child window at a given index.
index | The index. |
---|
Gets the number of child windows.
Gets the unique window id.
Gets the layer which determines the Z-order of the window. Windows with greater layer appear on top of windows with lesser layer.
Gets the parent window if such.
Gets the root node in the window's hierarchy.
Returns an integer hash code for this object. By contract, any two
objects for which equals(Object)
returns true
must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode
method
if you intend implementing your own hashCode
method.
Gets if this window has accessibility focus.
Gets if this window is active. An active window is the one the user is currently touching or the window has input focus and the user is not touching any window.
Gets if this window has input focus.
Returns a cached instance if such is available or a new one is
created. The returned instance is initialized from the given
info
.
info | The other info. |
---|
Returns a cached instance if such is available or a new one is created.
Return an instance back to be reused.
Note: You must not touch the object after calling this function.
IllegalStateException | If the info is already recycled. |
---|
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. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|