AccessibilityRecord
public
class
AccessibilityRecord
extends Object
| java.lang.Object | |
| ↳ | android.view.accessibility.AccessibilityRecord |
Represents a record in an AccessibilityEvent and contains information
about state change of its source View. When a view fires
an accessibility event it requests from its parent to dispatch the
constructed event. The parent may optionally append a record for itself
for providing more context to
AccessibilityServices. Hence,
accessibility services can facilitate additional accessibility records
to enhance feedback.
Once the accessibility event containing a record is dispatched the record is made immutable and calling a state mutation method generates an error.
Note: Not all properties are applicable to all accessibility
event types. For detailed information please refer to AccessibilityEvent.
Developer Guides
For more information about creating and processing AccessibilityRecords, read the Accessibility developer guide.
Summary
Public constructors | |
|---|---|
AccessibilityRecord()
Creates a new |
|
AccessibilityRecord(AccessibilityRecord record)
Copy constructor. |
|
Public methods | |
|---|---|
int
|
getAddedCount()
Gets the number of added characters. |
CharSequence
|
getBeforeText()
Gets the text before a change. |
CharSequence
|
getClassName()
Gets the class name of the source. |
CharSequence
|
getContentDescription()
Gets the description of the source. |
int
|
getCurrentItemIndex()
Gets the index of the source in the list of items the can be visited. |
int
|
getDisplayId()
Gets the id of the display from which the event comes from. |
int
|
getFromIndex()
Gets the index of the first character of the changed |