# AccessibilityRecordCompat

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#)  

# AccessibilityRecordCompat

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


class
AccessibilityRecordCompat
`  
`

extends Object


``


`

|---|-----------------------------------------------------------------|
| java.lang.Object                                                   ||
| ↳ | android.support.v4.view.accessibility.AccessibilityRecordCompat |

<br />

*** ** * ** ***

Helper for accessing[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                 ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                 ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#AccessibilityRecordCompat(java.lang.Object))`(Object record) ` *This constructor was deprecated in API level 22.1.0. This is not type safe. If you want to modify an[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)'s properties defined in[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)use[asRecord(AccessibilityEvent)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#asRecord(android.view.accessibility.AccessibilityEvent)). This method will be removed in a subsequent release of the support library.* |

|                                                                                                                                                                                                                                                                                                                                                               ### Public methods                                                                                                                                                                                                                                                                                                                                                               ||
|------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                                                                                                     | ` `[equals](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#equals(java.lang.Object))`(Object obj) ` *This method was deprecated in API level 26.1.0. Use[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)directly.*                                                                                                                                                                                                                                                  |
| ` int`                                                                                                                                         | ` `[getAddedCount](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getAddedCount())`() ` *This method was deprecated in API level 26.1.0. Use[getAddedCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getAddedCount())directly.*                                                                                                                                                                                                                                                  |
| ` CharSequence`                                                                                                                                | ` `[getBeforeText](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getBeforeText())`() ` *This method was deprecated in API level 26.1.0. Use[getBeforeText()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getBeforeText())directly.*                                                                                                                                                                                                                                                  |
| ` CharSequence`                                                                                                                                | ` `[getClassName](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getClassName())`() ` *This method was deprecated in API level 26.1.0. Use[getClassName()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getClassName())directly.*                                                                                                                                                                                                                                                      |
| ` CharSequence`                                                                                                                                | ` `[getContentDescription](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getContentDescription())`() ` *This method was deprecated in API level 26.1.0. Use[getContentDescription()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getContentDescription())directly.*                                                                                                                                                                                                                  |
| ` int`                                                                                                                                         | ` `[getCurrentItemIndex](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getCurrentItemIndex())`() ` *This method was deprecated in API level 26.1.0. Use[getCurrentItemIndex()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getCurrentItemIndex())directly.*                                                                                                                                                                                                                          |
| ` int`                                                                                                                                         | ` `[getFromIndex](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getFromIndex())`() ` *This method was deprecated in API level 26.1.0. Use[getFromIndex()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getFromIndex())directly.*                                                                                                                                                                                                                                                      |
| ` Object`                                                                                                                                      | ` `[getImpl](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getImpl())`() ` *This method was deprecated in API level 22.1.0. This method will be removed in a subsequent release of the support library.*                                                                                                                                                                                                                                                                                                                             |
| ` int`                                                                                                                                         | ` `[getItemCount](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getItemCount())`() ` *This method was deprecated in API level 26.1.0. Use[getItemCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getItemCount())directly.*                                                                                                                                                                                                                                                      |
| ` int`                                                                                                                                         | ` `[getMaxScrollX](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollX())`() ` *This method was deprecated in API level 26.1.0. Use[getMaxScrollX(AccessibilityRecord)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollX(android.view.accessibility.AccessibilityRecord))instead.*                                                                                                                                                                      |
| ` static int`                                                                                                                                  | ` `[getMaxScrollX](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollX(android.view.accessibility.AccessibilityRecord))`(`[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)` record) ` Gets the max scroll offset of the source left edge in pixels.                                                                                                                                                                                                        |
| ` int`                                                                                                                                         | ` `[getMaxScrollY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollY())`() ` *This method was deprecated in API level 26.1.0. Use[getMaxScrollY(AccessibilityRecord)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollY(android.view.accessibility.AccessibilityRecord))instead.*                                                                                                                                                                      |
| ` static int`                                                                                                                                  | ` `[getMaxScrollY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollY(android.view.accessibility.AccessibilityRecord))`(`[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)` record) ` Gets the max scroll offset of the source top edge in pixels.                                                                                                                                                                                                         |
| ` `[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)                                                            | ` `[getParcelableData](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getParcelableData())`() ` *This method was deprecated in API level 26.1.0. Use[getParcelableData()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getParcelableData())directly.*                                                                                                                                                                                                                                  |
| ` int`                                                                                                                                         | ` `[getRemovedCount](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getRemovedCount())`() ` *This method was deprecated in API level 26.1.0. Use[getRemovedCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getRemovedCount())directly.*                                                                                                                                                                                                                                          |
| ` int`                                                                                                                                         | ` `[getScrollX](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getScrollX())`() ` *This method was deprecated in API level 26.1.0. Use[getScrollX()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getScrollX())directly.*                                                                                                                                                                                                                                                              |
| ` int`                                                                                                                                         | ` `[getScrollY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getScrollY())`() ` *This method was deprecated in API level 26.1.0. Use[getScrollY()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getScrollY())directly.*                                                                                                                                                                                                                                                              |
| ` `[AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat)    | ` `[getSource](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getSource())`() ` *This method was deprecated in API level 26.1.0. Use[getSource()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getSource())directly.*                                                                                                                                                                                                                                                                  |
| ` List<CharSequence>`                                                                                                                          | ` `[getText](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getText())`() ` *This method was deprecated in API level 26.1.0. Use[getText()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getText())directly.*                                                                                                                                                                                                                                                                          |
| ` int`                                                                                                                                         | ` `[getToIndex](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getToIndex())`() ` *This method was deprecated in API level 26.1.0. Use[getToIndex()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getToIndex())directly.*                                                                                                                                                                                                                                                              |
| ` int`                                                                                                                                         | ` `[getWindowId](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getWindowId())`() ` *This method was deprecated in API level 26.1.0. Use[getWindowId()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getWindowId())directly.*                                                                                                                                                                                                                                                          |
| ` int`                                                                                                                                         | ` `[hashCode](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#hashCode())`() ` *This method was deprecated in API level 26.1.0. Use[hashCode()](https://developer.android.com/reference/java/lang/Object#hashCode())directly.*                                                                                                                                                                                                                                                                                                         |
| ` boolean`                                                                                                                                     | ` `[isChecked](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#isChecked())`() ` *This method was deprecated in API level 26.1.0. Use[isChecked()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isChecked())directly.*                                                                                                                                                                                                                                                                  |
| ` boolean`                                                                                                                                     | ` `[isEnabled](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#isEnabled())`() ` *This method was deprecated in API level 26.1.0. Use[isEnabled()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly.*                                                                                                                                                                                                                                                                  |
| ` boolean`                                                                                                                                     | ` `[isFullScreen](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#isFullScreen())`() ` *This method was deprecated in API level 26.1.0. Use[isFullScreen()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isFullScreen())directly.*                                                                                                                                                                                                                                                      |
| ` boolean`                                                                                                                                     | ` `[isPassword](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#isPassword())`() ` *This method was deprecated in API level 26.1.0. Use[isPassword()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isPassword())directly.*                                                                                                                                                                                                                                                              |
| ` boolean`                                                                                                                                     | ` `[isScrollable](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#isScrollable())`() ` *This method was deprecated in API level 26.1.0. Use[isScrollable()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isScrollable())directly.*                                                                                                                                                                                                                                                      |
| ` static `[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | ` `[obtain](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#obtain(android.support.v4.view.accessibility.AccessibilityRecordCompat))`(`[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat)` record) ` *This method was deprecated in API level 26.1.0. Use[obtain(AccessibilityRecord)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#obtain(android.view.accessibility.AccessibilityRecord))directly.* |
| ` static `[AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | ` `[obtain](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#obtain())`() ` *This method was deprecated in API level 26.1.0. Use[obtain()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#obtain())directly.*                                                                                                                                                                                                                                                                              |
| ` void`                                                                                                                                        | ` `[recycle](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#recycle())`() ` *This method was deprecated in API level 26.1.0. Use[recycle()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#recycle())directly.*                                                                                                                                                                                                                                                                          |
| ` void`                                                                                                                                        | ` `[setAddedCount](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setAddedCount(int))`(int addedCount) ` *This method was deprecated in API level 26.1.0. Use[setAddedCount(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setAddedCount(int))directly.*                                                                                                                                                                                                                           |
| ` void`                                                                                                                                        | ` `[setBeforeText](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setBeforeText(java.lang.CharSequence))`(CharSequence beforeText) ` *This method was deprecated in API level 26.1.0. Use[setBeforeText(CharSequence)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setBeforeText(java.lang.CharSequence))directly.*                                                                                                                                                                   |
| ` void`                                                                                                                                        | ` `[setChecked](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setChecked(boolean))`(boolean isChecked) ` *This method was deprecated in API level 26.1.0. Use[setChecked(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setChecked(boolean))directly.*                                                                                                                                                                                                                        |
| ` void`                                                                                                                                        | ` `[setClassName](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setClassName(java.lang.CharSequence))`(CharSequence className) ` *This method was deprecated in API level 26.1.0. Use[setClassName(CharSequence)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setClassName(java.lang.CharSequence))directly.*                                                                                                                                                                        |
| ` void`                                                                                                                                        | ` `[setContentDescription](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setContentDescription(java.lang.CharSequence))`(CharSequence contentDescription) ` *This method was deprecated in API level 26.1.0. Use[setContentDescription(CharSequence)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setContentDescription(java.lang.CharSequence))directly.*                                                                                                                           |
| ` void`                                                                                                                                        | ` `[setCurrentItemIndex](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setCurrentItemIndex(int))`(int currentItemIndex) ` *This method was deprecated in API level 26.1.0. Use[setCurrentItemIndex(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setCurrentItemIndex(int))directly.*                                                                                                                                                                                             |
| ` void`                                                                                                                                        | ` `[setEnabled](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setEnabled(boolean))`(boolean isEnabled) ` *This method was deprecated in API level 26.1.0. Use[isEnabled()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly.*                                                                                                                                                                                                                                        |
| ` void`                                                                                                                                        | ` `[setFromIndex](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setFromIndex(int))`(int fromIndex) ` *This method was deprecated in API level 26.1.0. Use[setFromIndex(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setFromIndex(int))directly.*                                                                                                                                                                                                                                |
| ` void`                                                                                                                                        | ` `[setFullScreen](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setFullScreen(boolean))`(boolean isFullScreen) ` *This method was deprecated in API level 26.1.0. Use[setFullScreen(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setFullScreen(boolean))directly.*                                                                                                                                                                                                         |
| ` void`                                                                                                                                        | ` `[setItemCount](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setItemCount(int))`(int itemCount) ` *This method was deprecated in API level 26.1.0. Use[setItemCount(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setItemCount(int))directly.*                                                                                                                                                                                                                                |
| ` void`                                                                                                                                        | ` `[setMaxScrollX](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(int))`(int maxScrollX) ` *This method was deprecated in API level 26.1.0. Use[setMaxScrollX(AccessibilityRecord, int)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(android.view.accessibility.AccessibilityRecord, int))instead.*                                                                                                                                           |
| ` static void`                                                                                                                                 | ` `[setMaxScrollX](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(android.view.accessibility.AccessibilityRecord, int))`(`[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)` record, int maxScrollX) ` Sets the max scroll offset of the source left edge in pixels.                                                                                                                                                                                   |
| ` static void`                                                                                                                                 | ` `[setMaxScrollY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(android.view.accessibility.AccessibilityRecord, int))`(`[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)` record, int maxScrollY) ` Sets the max scroll offset of the source top edge in pixels.                                                                                                                                                                                    |
| ` void`                                                                                                                                        | ` `[setMaxScrollY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(int))`(int maxScrollY) ` *This method was deprecated in API level 26.1.0. Use[setMaxScrollY(AccessibilityRecord, int)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(android.view.accessibility.AccessibilityRecord, int))instead.*                                                                                                                                           |
| ` void`                                                                                                                                        | ` `[setParcelableData](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setParcelableData(android.os.Parcelable))`(`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)` parcelableData) ` *This method was deprecated in API level 26.1.0. Use[setParcelableData(Parcelable)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setParcelableData(android.os.Parcelable))directly.*                                                                             |
| ` void`                                                                                                                                        | ` `[setPassword](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setPassword(boolean))`(boolean isPassword) ` *This method was deprecated in API level 26.1.0. Use[setPassword(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setPassword(boolean))directly.*                                                                                                                                                                                                                   |
| ` void`                                                                                                                                        | ` `[setRemovedCount](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setRemovedCount(int))`(int removedCount) ` *This method was deprecated in API level 26.1.0. Use[setRemovedCount(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setRemovedCount(int))directly.*                                                                                                                                                                                                                 |
| ` void`                                                                                                                                        | ` `[setScrollX](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setScrollX(int))`(int scrollX) ` *This method was deprecated in API level 26.1.0. Use[setScrollX(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollX(int))directly.*                                                                                                                                                                                                                                          |
| ` void`                                                                                                                                        | ` `[setScrollY](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setScrollY(int))`(int scrollY) ` *This method was deprecated in API level 26.1.0. Use[setScrollY(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollY(int))directly.*                                                                                                                                                                                                                                          |
| ` void`                                                                                                                                        | ` `[setScrollable](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setScrollable(boolean))`(boolean scrollable) ` *This method was deprecated in API level 26.1.0. Use[setScrollable(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollable(boolean))directly.*                                                                                                                                                                                                           |
| ` void`                                                                                                                                        | ` `[setSource](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setSource(android.view.View, int))`(`[View](https://developer.android.com/reference/android/view/View.html)` root, int virtualDescendantId) ` *This method was deprecated in API level 26.1.0. Use[setSource(AccessibilityRecord, View, int)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setSource(android.view.accessibility.AccessibilityRecord, android.view.View, int))instead.*                       |
| ` void`                                                                                                                                        | ` `[setSource](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setSource(android.view.View))`(`[View](https://developer.android.com/reference/android/view/View.html)` source) ` *This method was deprecated in API level 26.1.0. Use[setSource(View)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setSource(android.view.View))directly.*                                                                                                                                             |
| ` static void`                                                                                                                                 | ` `[setSource](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setSource(android.view.accessibility.AccessibilityRecord, android.view.View, int))`(`[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)` record, `[View](https://developer.android.com/reference/android/view/View.html)` root, int virtualDescendantId) ` Sets the source to be a virtual descendant of the given`root`.                                                                               |
| ` void`                                                                                                                                        | ` `[setToIndex](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setToIndex(int))`(int toIndex) ` *This method was deprecated in API level 26.1.0. Use[setToIndex(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setToIndex(int))directly.*                                                                                                                                                                                                                                          |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### AccessibilityRecordCompat

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AccessibilityRecordCompat (Object record)
```

<br />

**This constructor was deprecated in API level 22.1.0.**   
This is not type safe. If you want to modify an[AccessibilityEvent](https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html)'s properties defined in[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)use[asRecord(AccessibilityEvent)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat#asRecord(android.view.accessibility.AccessibilityEvent)). This method will be removed in a subsequent release of the support library.

<br />

<br />

|        Parameters         ||
|----------|-----------------|
| `record` | `Object` <br /> |

## Public methods

### equals

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean equals (Object obj)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)directly.

<br />

<br />

|       Parameters       ||
|-------|-----------------|
| `obj` | `Object` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### getAddedCount

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getAddedCount ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getAddedCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getAddedCount())directly.

Gets the number of added characters.

<br />

|                    Returns                    ||
|-------|----------------------------------------|
| `int` | The number of added characters. <br /> |

### getBeforeText

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
CharSequence getBeforeText ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getBeforeText()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getBeforeText())directly.

Sets the text before a change.

<br />

|                      Returns                       ||
|----------------|------------------------------------|
| `CharSequence` | The text before the change. <br /> |

### getClassName

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
CharSequence getClassName ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getClassName()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getClassName())directly.

Gets the class name of the source.

<br />

|                Returns                 ||
|----------------|------------------------|
| `CharSequence` | The class name. <br /> |

### getContentDescription

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
CharSequence getContentDescription ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getContentDescription()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getContentDescription())directly.

Gets the description of the source.

<br />

|                 Returns                 ||
|----------------|-------------------------|
| `CharSequence` | The description. <br /> |

### getCurrentItemIndex

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getCurrentItemIndex ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getCurrentItemIndex()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getCurrentItemIndex())directly.

Gets the index of the source in the list of items the can be visited.

<br />

|                Returns                ||
|-------|--------------------------------|
| `int` | The current item index. <br /> |

### getFromIndex

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getFromIndex ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getFromIndex()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getFromIndex())directly.

Gets the index of the first character of the changed sequence, or the beginning of a text selection or the index of the first visible item when scrolling.

<br />

|                                           Returns                                            ||
|-------|---------------------------------------------------------------------------------------|
| `int` | The index of the first character or selection start or the first visible item. <br /> |

### getImpl

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Object getImpl ()
```

<br />

**This method was deprecated in API level 22.1.0.**   
This method will be removed in a subsequent release of the support library.

<br />

<br />

|                   Returns                    ||
|----------|------------------------------------|
| `Object` | The wrapped implementation. <br /> |

### getItemCount

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getItemCount ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getItemCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getItemCount())directly.

Gets the number of items that can be visited.

<br />

|              Returns               ||
|-------|-----------------------------|
| `int` | The number of items. <br /> |

### getMaxScrollX

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMaxScrollX ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getMaxScrollX(AccessibilityRecord)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollX(android.view.accessibility.AccessibilityRecord))instead.

Gets the max scroll offset of the source left edge in pixels.

<br />

|            Returns            ||
|-------|------------------------|
| `int` | The max scroll. <br /> |

### getMaxScrollX

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMaxScrollX (AccessibilityRecord record)
```

Gets the max scroll offset of the source left edge in pixels.

<br />

|                                                                                  Parameters                                                                                   ||
|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `record` | `AccessibilityRecord`: The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. <br /> |

|            Returns            ||
|-------|------------------------|
| `int` | The max scroll. <br /> |

### getMaxScrollY

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMaxScrollY ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getMaxScrollY(AccessibilityRecord)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#getMaxScrollY(android.view.accessibility.AccessibilityRecord))instead.

Gets the max scroll offset of the source top edge in pixels.

<br />

|            Returns            ||
|-------|------------------------|
| `int` | The max scroll. <br /> |

### getMaxScrollY

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getMaxScrollY (AccessibilityRecord record)
```

Gets the max scroll offset of the source top edge in pixels.

<br />

|                                                                                  Parameters                                                                                   ||
|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `record` | `AccessibilityRecord`: The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. <br /> |

|            Returns            ||
|-------|------------------------|
| `int` | The max scroll. <br /> |

### getParcelableData

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Parcelable getParcelableData ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getParcelableData()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getParcelableData())directly.

Gets the[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)data.

<br />

|                                                    Returns                                                    ||
|----------------------------------------------------------------------------------|-----------------------------|
| [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) | The parcelable data. <br /> |

### getRemovedCount

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getRemovedCount ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getRemovedCount()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getRemovedCount())directly.

Gets the number of removed characters.

<br />

|                     Returns                     ||
|-------|------------------------------------------|
| `int` | The number of removed characters. <br /> |

### getScrollX

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getScrollX ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getScrollX()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getScrollX())directly.

Gets the scroll offset of the source left edge in pixels.

<br />

|          Returns          ||
|-------|--------------------|
| `int` | The scroll. <br /> |

### getScrollY

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getScrollY ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getScrollY()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getScrollY())directly.

Gets the scroll offset of the source top edge in pixels.

<br />

|          Returns          ||
|-------|--------------------|
| `int` | The scroll. <br /> |

### getSource

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AccessibilityNodeInfoCompat getSource ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getSource()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getSource())directly.

Gets the[AccessibilityNodeInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html)of the event source.

**Note:** It is a client responsibility to recycle the received info by calling[AccessibilityNodeInfo#recycle()](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html#recycle())to avoid creating of multiple instances.

<br />

<br />

|                                                                                 Returns                                                                                  ||
|------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------|
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat) | The info of the source. <br /> |

### getText

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
List<CharSequence> getText ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getText()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getText())directly.

Gets the text of the event. The index in the list represents the priority of the text. Specifically, the lower the index the higher the priority.

<br />

|                Returns                 ||
|----------------------|------------------|
| `List<CharSequence>` | The text. <br /> |

### getToIndex

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getToIndex ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getToIndex()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getToIndex())directly.

Gets the index of text selection end or the index of the last visible item when scrolling.

<br />

|                           Returns                            ||
|-------|-------------------------------------------------------|
| `int` | The index of selection end or last item index. <br /> |

### getWindowId

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getWindowId ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[getWindowId()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getWindowId())directly.

Gets the id of the window from which the event comes from.

<br />

|           Returns            ||
|-------|-----------------------|
| `int` | The window id. <br /> |

### hashCode

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int hashCode ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[hashCode()](https://developer.android.com/reference/java/lang/Object#hashCode())directly.

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### isChecked

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isChecked ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[isChecked()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isChecked())directly.

Gets if the source is checked.

<br />

|                             Returns                             ||
|-----------|------------------------------------------------------|
| `boolean` | True if the view is checked, false otherwise. <br /> |

### isEnabled

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isEnabled ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[isEnabled()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly.

Gets if the source is enabled.

<br />

|                             Returns                             ||
|-----------|------------------------------------------------------|
| `boolean` | True if the view is enabled, false otherwise. <br /> |

### isFullScreen

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isFullScreen ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[isFullScreen()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isFullScreen())directly.

Gets if the source is taking the entire screen.

<br />

|                                Returns                                ||
|-----------|------------------------------------------------------------|
| `boolean` | True if the source is full screen, false otherwise. <br /> |

### isPassword

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isPassword ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[isPassword()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isPassword())directly.

Gets if the source is a password field.

<br />

|                                 Returns                                  ||
|-----------|---------------------------------------------------------------|
| `boolean` | True if the view is a password field, false otherwise. <br /> |

### isScrollable

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isScrollable ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[isScrollable()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isScrollable())directly.

Gets if the source is scrollable.

<br />

|                               Returns                                ||
|-----------|-----------------------------------------------------------|
| `boolean` | True if the source is scrollable, false otherwise. <br /> |

### obtain

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AccessibilityRecordCompat obtain (AccessibilityRecordCompat record)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[obtain(AccessibilityRecord)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#obtain(android.view.accessibility.AccessibilityRecord))directly.

Returns a cached instance if such is available or a new one is instantiated. The instance is initialized with data from the given record.

<br />

|                  Parameters                  ||
|----------|------------------------------------|
| `record` | `AccessibilityRecordCompat` <br /> |

|                                                                          Returns                                                                          ||
|--------------------------------------------------------------------------------------------------------------------------------------|---------------------|
| [AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | An instance. <br /> |

### obtain

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
AccessibilityRecordCompat obtain ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[obtain()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#obtain())directly.

Returns a cached instance if such is available or a new one is instantiated.

<br />

|                                                                          Returns                                                                          ||
|--------------------------------------------------------------------------------------------------------------------------------------|---------------------|
| [AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat) | An instance. <br /> |

### recycle

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void recycle ()
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[recycle()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#recycle())directly.

Return an instance back to be reused.

**Note:**You must not touch the object after calling this function.

<br />

<br />

|                           Throws                            ||
|-------------------------|------------------------------------|
| `IllegalStateException` | If the record is already recycled. |

### setAddedCount

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAddedCount (int addedCount)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setAddedCount(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setAddedCount(int))directly.

Sets the number of added characters.

<br />

|                         Parameters                          ||
|--------------|-----------------------------------------------|
| `addedCount` | `int`: The number of added characters. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setBeforeText

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setBeforeText (CharSequence beforeText)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setBeforeText(CharSequence)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setBeforeText(java.lang.CharSequence))directly.

Sets the text before a change.

<br />

|                            Parameters                            ||
|--------------|----------------------------------------------------|
| `beforeText` | `CharSequence`: The text before the change. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setChecked

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setChecked (boolean isChecked)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setChecked(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setChecked(boolean))directly.

Sets if the source is checked.

<br />

|                                  Parameters                                  ||
|-------------|-----------------------------------------------------------------|
| `isChecked` | `boolean`: True if the view is checked, false otherwise. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setClassName

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setClassName (CharSequence className)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setClassName(CharSequence)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setClassName(java.lang.CharSequence))directly.

Sets the class name of the source.

<br />

|                     Parameters                     ||
|-------------|---------------------------------------|
| `className` | `CharSequence`: The lass name. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setContentDescription

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setContentDescription (CharSequence contentDescription)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setContentDescription(CharSequence)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setContentDescription(java.lang.CharSequence))directly.

Sets the description of the source.

<br />

|                          Parameters                           ||
|----------------------|-----------------------------------------|
| `contentDescription` | `CharSequence`: The description. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setCurrentItemIndex

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setCurrentItemIndex (int currentItemIndex)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setCurrentItemIndex(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setCurrentItemIndex(int))directly.

Sets the index of the source in the list of items that can be visited.

<br />

|                        Parameters                         ||
|--------------------|---------------------------------------|
| `currentItemIndex` | `int`: The current item index. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setEnabled

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setEnabled (boolean isEnabled)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[isEnabled()](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly.

Sets if the source is enabled.

<br />

|                                  Parameters                                  ||
|-------------|-----------------------------------------------------------------|
| `isEnabled` | `boolean`: True if the view is enabled, false otherwise. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setFromIndex

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setFromIndex (int fromIndex)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setFromIndex(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setFromIndex(int))directly.

Sets the index of the first character of the changed sequence or the beginning of a text selection or the index of the first visible item when scrolling.

<br />

|                                                Parameters                                                 ||
|-------------|----------------------------------------------------------------------------------------------|
| `fromIndex` | `int`: The index of the first character or selection start or the first visible item. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setFullScreen

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setFullScreen (boolean isFullScreen)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setFullScreen(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setFullScreen(boolean))directly.

Sets if the source is taking the entire screen.

<br />

|                                      Parameters                                       ||
|----------------|-----------------------------------------------------------------------|
| `isFullScreen` | `boolean`: True if the source is full screen, false otherwise. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setItemCount

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setItemCount (int itemCount)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setItemCount(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setItemCount(int))directly.

Sets the number of items that can be visited.

<br />

|                   Parameters                    ||
|-------------|------------------------------------|
| `itemCount` | `int`: The number of items. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setMaxScrollX

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setMaxScrollX (int maxScrollX)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setMaxScrollX(AccessibilityRecord, int)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(android.view.accessibility.AccessibilityRecord, int))instead.

Sets the max scroll offset of the source left edge in pixels.

<br />

|                 Parameters                  ||
|--------------|-------------------------------|
| `maxScrollX` | `int`: The max scroll. <br /> |

### setMaxScrollX

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setMaxScrollX (AccessibilityRecord record, 
                int maxScrollX)
```

Sets the max scroll offset of the source left edge in pixels.

<br />

|                                                                                    Parameters                                                                                     ||
|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `record`     | `AccessibilityRecord`: The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. <br /> |
| `maxScrollX` | `int`: The max scroll. <br />                                                                                                                                       |

### setMaxScrollY

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setMaxScrollY (AccessibilityRecord record, 
                int maxScrollY)
```

Sets the max scroll offset of the source top edge in pixels.

<br />

|                                                                                    Parameters                                                                                     ||
|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `record`     | `AccessibilityRecord`: The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. <br /> |
| `maxScrollY` | `int`: The max scroll. <br />                                                                                                                                       |

### setMaxScrollY

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setMaxScrollY (int maxScrollY)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setMaxScrollY(AccessibilityRecord, int)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(android.view.accessibility.AccessibilityRecord, int))instead.

Sets the max scroll offset of the source top edge in pixels.

<br />

|                 Parameters                  ||
|--------------|-------------------------------|
| `maxScrollY` | `int`: The max scroll. <br /> |

### setParcelableData

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setParcelableData (Parcelable parcelableData)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setParcelableData(Parcelable)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setParcelableData(android.os.Parcelable))directly.

Sets the[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)data of the event.

<br />

|                         Parameters                          ||
|------------------|-------------------------------------------|
| `parcelableData` | `Parcelable`: The parcelable data. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setPassword

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setPassword (boolean isPassword)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setPassword(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setPassword(boolean))directly.

Sets if the source is a password field.

<br />

|                                       Parameters                                       ||
|--------------|--------------------------------------------------------------------------|
| `isPassword` | `boolean`: True if the view is a password field, false otherwise. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setRemovedCount

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setRemovedCount (int removedCount)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setRemovedCount(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setRemovedCount(int))directly.

Sets the number of removed characters.

<br />

|                           Parameters                            ||
|----------------|-------------------------------------------------|
| `removedCount` | `int`: The number of removed characters. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setScrollX

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setScrollX (int scrollX)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setScrollX(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollX(int))directly.

Sets the scroll offset of the source left edge in pixels.

<br />

|              Parameters              ||
|-----------|---------------------------|
| `scrollX` | `int`: The scroll. <br /> |

### setScrollY

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setScrollY (int scrollY)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setScrollY(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollY(int))directly.

Sets the scroll offset of the source top edge in pixels.

<br />

|              Parameters              ||
|-----------|---------------------------|
| `scrollY` | `int`: The scroll. <br /> |

### setScrollable

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setScrollable (boolean scrollable)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setScrollable(boolean)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollable(boolean))directly.

Sets if the source is scrollable.

<br />

|                                     Parameters                                     ||
|--------------|----------------------------------------------------------------------|
| `scrollable` | `boolean`: True if the source is scrollable, false otherwise. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setSource

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSource (View root, 
                int virtualDescendantId)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setSource(AccessibilityRecord, View, int)](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat#setSource(android.view.accessibility.AccessibilityRecord, android.view.View, int))instead.

Sets the source to be a virtual descendant of the given`root`. If`virtualDescendantId`equals to[NO_ID](https://developer.android.com/reference/android/view/View.html#NO_ID)the root is set as the source.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

<br />

<br />

|                               Parameters                               ||
|-----------------------|-------------------------------------------------|
| `root`                | `View`: The root of the virtual subtree. <br /> |
| `virtualDescendantId` | `int`: The id of the virtual descendant. <br /> |

### setSource

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSource (View source)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setSource(View)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setSource(android.view.View))directly.

Sets the event source.

<br />

|              Parameters              ||
|----------|----------------------------|
| `source` | `View`: The source. <br /> |

|                              Throws                              ||
|-------------------------|-----------------------------------------|
| `IllegalStateException` | If called from an AccessibilityService. |

### setSource

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setSource (AccessibilityRecord record, 
                View root, 
                int virtualDescendantId)
```

Sets the source to be a virtual descendant of the given`root`. If`virtualDescendantId`equals to[NO_ID](https://developer.android.com/reference/android/view/View.html#NO_ID)the root is set as the source.

A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.

<br />

<br />

|                                                                                         Parameters                                                                                         ||
|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `record`              | `AccessibilityRecord`: The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. <br /> |
| `root`                | `View`: The root of the virtual subtree. <br />                                                                                                                     |
| `virtualDescendantId` | `int`: The id of the virtual descendant. <br />                                                                                                                     |

### setToIndex

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setToIndex (int toIndex)
```

<br />

**This method was deprecated in API level 26.1.0.**   
Use[setToIndex(int)](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setToIndex(int))directly.

Sets the index of text selection end or the index of the last visible item when scrolling.

<br />

|                               Parameters                                ||
|-----------|--------------------------------------------------------------|
| `toIndex` | `int`: The index of selection end or last item index. <br /> |

-

  ## Interfaces

  - [AccessibilityManagerCompat.AccessibilityStateChangeListener](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListener)
  - [AccessibilityManagerCompat.TouchExplorationStateChangeListener](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.TouchExplorationStateChangeListener)
-

  ## Classes

  - [AccessibilityEventCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityEventCompat)
  - [AccessibilityManagerCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat)
  - [AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat)
  - [AccessibilityNodeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat)
  - [AccessibilityNodeInfoCompat.AccessibilityActionCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.AccessibilityActionCompat)
  - [AccessibilityNodeInfoCompat.CollectionInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionInfoCompat)
  - [AccessibilityNodeInfoCompat.CollectionItemInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat)
  - [AccessibilityNodeInfoCompat.RangeInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.RangeInfoCompat)
  - [AccessibilityNodeProviderCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeProviderCompat)
  - [AccessibilityRecordCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityRecordCompat)
  - [AccessibilityWindowInfoCompat](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityWindowInfoCompat)