# AccessibilityRecordCompat

# AccessibilityRecordCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityRecordCompat.java+class:androidx.core.view.accessibility.AccessibilityRecordCompat)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityRecordCompat "View this page in Java")

<br />

```
class 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/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#AccessibilityRecordCompat(java.lang.Object))~~`(record: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!)` **This function is deprecated.** This is not type safe. <br /> |

|                                                                                                                                           ### Public functions                                                                                                                                            |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                       | ~~[equals](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#equals(java.lang.Object))~~`(obj: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!)` **This function is deprecated.** Use[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)directly. <br />                                                                                                                                                                                                                                                                                                                                                             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getAddedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getAddedCount())~~`()` **This function is deprecated.** Use[getAddedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getAddedCount())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!`                                                                                                                                                                                                         | ~~[getBeforeText](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getBeforeText())~~`()` **This function is deprecated.** Use[getBeforeText](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getBeforeText())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!`                                                                                                                                                                                                         | ~~[getClassName](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getClassName())~~`()` **This function is deprecated.** Use[getClassName](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getClassName())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!`                                                                                                                                                                                                         | ~~[getContentDescription](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getContentDescription())~~`()` **This function is deprecated.** Use[getContentDescription](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getContentDescription())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getCurrentItemIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getCurrentItemIndex())~~`()` **This function is deprecated.** Use[getCurrentItemIndex](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getCurrentItemIndex())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getFromIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getFromIndex())~~`()` **This function is deprecated.** Use[getFromIndex](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getFromIndex())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!`                                                                                                                                                                                                                            | ~~[getImpl](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getImpl())~~`()` **This function is deprecated.** This method will be removed in a subsequent release of the support library. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getItemCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getItemCount())~~`()` **This function is deprecated.** Use[getItemCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getItemCount())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollX())~~`()` **This function is deprecated.** Use[getMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollX(android.view.accessibility.AccessibilityRecord))instead. <br />                                                                                                                                                                                                                                                                                                                                                                             |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                 | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "record.getMaxScrollX()")` ~~[getMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollX(android.view.accessibility.AccessibilityRecord))~~`(record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)`)` **This function is deprecated.** Call[getMaxScrollX](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getMaxScrollX())directly. <br />                                                                                                                   |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollY())~~`()` **This function is deprecated.** Use[getMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollY(android.view.accessibility.AccessibilityRecord))instead. <br />                                                                                                                                                                                                                                                                                                                                                                             |
| `java-static `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                 | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "record.getMaxScrollY()")` ~~[getMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollY(android.view.accessibility.AccessibilityRecord))~~`(record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)`)` **This function is deprecated.** Call[getMaxScrollY](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getMaxScrollY())directly. <br />                                                                                                                   |
| [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`!`                                                                                                                                                                                                                       | ~~[getParcelableData](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getParcelableData())~~`()` **This function is deprecated.** Use[getParcelableData](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getParcelableData())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getRemovedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getRemovedCount())~~`()` **This function is deprecated.** Use[getRemovedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getRemovedCount())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getScrollX())~~`()` **This function is deprecated.** Use[getScrollX](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getScrollX())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getScrollY())~~`()` **This function is deprecated.** Use[getScrollY](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getScrollY())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`!`                                                                                                                                                             | ~~[getSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getSource())~~`()` **This function is deprecated.** Use[getSource](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getSource())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `(`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!>!` | ~~[getText](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getText())~~`()` **This function is deprecated.** Use[getText](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getText())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getToIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getToIndex())~~`()` **This function is deprecated.** Use[getToIndex](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getToIndex())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[getWindowId](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getWindowId())~~`()` **This function is deprecated.** Use[getWindowId](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getWindowId())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                               | ~~[hashCode](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#hashCode())~~`()` **This function is deprecated.** Use[hashCode](https://developer.android.com/reference/java/lang/Object.html#hashCode())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                       | ~~[isChecked](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isChecked())~~`()` **This function is deprecated.** Use[isChecked](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isChecked())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                       | ~~[isEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isEnabled())~~`()` **This function is deprecated.** Use[isEnabled](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                       | ~~[isFullScreen](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isFullScreen())~~`()` **This function is deprecated.** Use[isFullScreen](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isFullScreen())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                       | ~~[isPassword](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isPassword())~~`()` **This function is deprecated.** Use[isPassword](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isPassword())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                       | ~~[isScrollable](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isScrollable())~~`()` **This function is deprecated.** Use[isScrollable](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isScrollable())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `java-static `[AccessibilityRecordCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat)`!`                                                                                                                                                   | ~~[obtain](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#obtain())~~`()` **This function is deprecated.** Use[obtain](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#obtain())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `java-static `[AccessibilityRecordCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat)`!`                                                                                                                                                   | ~~[obtain](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#obtain(androidx.core.view.accessibility.AccessibilityRecordCompat))~~`(record: `[AccessibilityRecordCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat)`!)` **This function is deprecated.** Use[obtain](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#obtain(android.view.accessibility.AccessibilityRecord))directly. <br />                                                                                                                                                                                                           |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[recycle](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#recycle())~~`()` **This function is deprecated.** Use[recycle](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#recycle())directly. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setAddedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setAddedCount(int))~~`(addedCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setAddedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setAddedCount(int))directly. <br />                                                                                                                                                                                                                                                                                                                                         |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setBeforeText](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setBeforeText(java.lang.CharSequence))~~`(beforeText: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!)` **This function is deprecated.** Use[setBeforeText](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setBeforeText(java.lang.CharSequence))directly. <br />                                                                                                                                                                                                                                                                               |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setChecked](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setChecked(boolean))~~`(isChecked: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.** Use[setChecked](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setChecked(boolean))directly. <br />                                                                                                                                                                                                                                                                                                                                      |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setClassName](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setClassName(java.lang.CharSequence))~~`(className: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!)` **This function is deprecated.** Use[setClassName](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setClassName(java.lang.CharSequence))directly. <br />                                                                                                                                                                                                                                                                                    |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setContentDescription](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setContentDescription(java.lang.CharSequence))~~`(contentDescription: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!)` **This function is deprecated.** Use[setContentDescription](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setContentDescription(java.lang.CharSequence))directly. <br />                                                                                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setCurrentItemIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setCurrentItemIndex(int))~~`(currentItemIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setCurrentItemIndex](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setCurrentItemIndex(int))directly. <br />                                                                                                                                                                                                                                                                                                           |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setEnabled(boolean))~~`(isEnabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.** Use[isEnabled](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly. <br />                                                                                                                                                                                                                                                                                                                                               |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setFromIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setFromIndex(int))~~`(fromIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setFromIndex](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setFromIndex(int))directly. <br />                                                                                                                                                                                                                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setFullScreen](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setFullScreen(boolean))~~`(isFullScreen: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.** Use[setFullScreen](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setFullScreen(boolean))directly. <br />                                                                                                                                                                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setItemCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setItemCount(int))~~`(itemCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setItemCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setItemCount(int))directly. <br />                                                                                                                                                                                                                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(int))~~`(maxScrollX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(android.view.accessibility.AccessibilityRecord,int))instead. <br />                                                                                                                                                                                                                                                                             |
| `java-static `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                               | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "record.setMaxScrollX(maxScrollX)")` ~~[setMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(android.view.accessibility.AccessibilityRecord,int))~~`(record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)`, maxScrollX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call setMaxScrollX directly. <br />                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(int))~~`(maxScrollY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(android.view.accessibility.AccessibilityRecord,int))instead. <br />                                                                                                                                                                                                                                                                             |
| `java-static `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                               | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "record.setMaxScrollY(maxScrollY)")` ~~[setMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(android.view.accessibility.AccessibilityRecord,int))~~`(record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)`, maxScrollY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Call setMaxScrollY directly. <br />                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setParcelableData](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setParcelableData(android.os.Parcelable))~~`(parcelableData: `[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`!)` **This function is deprecated.** Use[setParcelableData](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setParcelableData(android.os.Parcelable))directly. <br />                                                                                                                                                                                                                                                                           |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setPassword](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setPassword(boolean))~~`(isPassword: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.** Use[setPassword](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setPassword(boolean))directly. <br />                                                                                                                                                                                                                                                                                                                                 |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setRemovedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setRemovedCount(int))~~`(removedCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setRemovedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setRemovedCount(int))directly. <br />                                                                                                                                                                                                                                                                                                                               |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setScrollX(int))~~`(scrollX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setScrollX](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollX(int))directly. <br />                                                                                                                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setScrollY(int))~~`(scrollY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setScrollY](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollY(int))directly. <br />                                                                                                                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setScrollable](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setScrollable(boolean))~~`(scrollable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.** Use[setScrollable](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollable(boolean))directly. <br />                                                                                                                                                                                                                                                                                                                         |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setSource(android.view.View))~~`(source: `[View](https://developer.android.com/reference/android/view/View.html)`!)` **This function is deprecated.** Use[setSource](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setSource(android.view.View))directly. <br />                                                                                                                                                                                                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setSource(android.view.View,int))~~`(root: `[View](https://developer.android.com/reference/android/view/View.html)`!, virtualDescendantId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setSource(android.view.accessibility.AccessibilityRecord,android.view.View,int))instead. <br />                                                                                                                                                               |
| `java-static `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                               | `@`[ReplaceWith](https://developer.android.com/reference/kotlin/androidx/annotation/ReplaceWith)`(expression = "record.setSource(root, virtualDescendantId)")` ~~[setSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setSource(android.view.accessibility.AccessibilityRecord,android.view.View,int))~~`(` ` record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)`,` ` root: `[View](https://developer.android.com/reference/android/view/View.html)`?,` ` virtualDescendantId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` **This function is deprecated.** Call setSource directly. <br /> |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                                                                                                                                                             | ~~[setToIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setToIndex(int))~~`(toIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setToIndex](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setToIndex(int))directly. <br />                                                                                                                                                                                                                                                                                                                                                        |

## Public constructors

### AccessibilityRecordCompat

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
[AccessibilityRecordCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#AccessibilityRecordCompat(java.lang.Object))(record: Any!)
```
| **This function is deprecated.**   
|
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](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityEventCompat#asRecord(android.view.accessibility.AccessibilityEvent)). This method will be removed in a subsequent release of the support library.  

## Public functions

### equals

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [equals](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#equals(java.lang.Object))(obj: Any!): Boolean
```
| **This function is deprecated.**   
|
Use[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)directly.  

### getAddedCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getAddedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getAddedCount())(): Int
```
| **This function is deprecated.**   
|
| Use[getAddedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getAddedCount())directly.

Gets the number of added characters.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|---------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The number of added characters. |

### getBeforeText

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getBeforeText](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getBeforeText())(): CharSequence!
```
| **This function is deprecated.**   
|
| Use[getBeforeText](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getBeforeText())directly.

Sets the text before a change.  

|                                              Returns                                              |
|---------------------------------------------------------------------------------------------------|-----------------------------|
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | The text before the change. |

### getClassName

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getClassName](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getClassName())(): CharSequence!
```
| **This function is deprecated.**   
|
| Use[getClassName](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getClassName())directly.

Gets the class name of the source.  

|                                              Returns                                              |
|---------------------------------------------------------------------------------------------------|-----------------|
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | The class name. |

### getContentDescription

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getContentDescription](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getContentDescription())(): CharSequence!
```
| **This function is deprecated.**   
|
| Use[getContentDescription](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getContentDescription())directly.

Gets the description of the source.  

|                                              Returns                                              |
|---------------------------------------------------------------------------------------------------|------------------|
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | The description. |

### getCurrentItemIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getCurrentItemIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getCurrentItemIndex())(): Int
```
| **This function is deprecated.**   
|
| 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.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The current item index. |

### getFromIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getFromIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getFromIndex())(): Int
```
| **This function is deprecated.**   
|
| 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.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|--------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The index of the first character or selection start or the first visible item. |

### getImpl

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getImpl](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getImpl())(): Any!
```
| **This function is deprecated.**   
|
This method will be removed in a subsequent release of the support library.  

|                                    Returns                                     |
|--------------------------------------------------------------------------------|-----------------------------|
| [Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!` | The wrapped implementation. |

### getItemCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getItemCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getItemCount())(): Int
```
| **This function is deprecated.**   
|
| Use[getItemCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getItemCount())directly.

Gets the number of items that can be visited.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|----------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The number of items. |

### getMaxScrollX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollX())(): Int
```
| **This function is deprecated.**   
|
| Use[getMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollX(android.view.accessibility.AccessibilityRecord))instead.

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

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The max scroll. |

### getMaxScrollX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)  

```
@ReplaceWith(expression = "record.getMaxScrollX()")
java-static fun [getMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollX(android.view.accessibility.AccessibilityRecord))(record: AccessibilityRecord): Int
```
| **This function is deprecated.**   
|
| Call[getMaxScrollX](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getMaxScrollX())directly.

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

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

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The max scroll. |

### getMaxScrollY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollY())(): Int
```
| **This function is deprecated.**   
|
| Use[getMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollY(android.view.accessibility.AccessibilityRecord))instead.

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

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The max scroll. |

### getMaxScrollY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)  

```
@ReplaceWith(expression = "record.getMaxScrollY()")
java-static fun [getMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getMaxScrollY(android.view.accessibility.AccessibilityRecord))(record: AccessibilityRecord): Int
```
| **This function is deprecated.**   
|
| Call[getMaxScrollY](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getMaxScrollY())directly.

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

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

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The max scroll. |

### getParcelableData

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getParcelableData](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getParcelableData())(): Parcelable!
```
| **This function is deprecated.**   
|
| 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.  

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

### getRemovedCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getRemovedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getRemovedCount())(): Int
```
| **This function is deprecated.**   
|
| Use[getRemovedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#getRemovedCount())directly.

Gets the number of removed characters.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The number of removed characters. |

### getScrollX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getScrollX())(): Int
```
| **This function is deprecated.**   
|
| 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.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The scroll. |

### getScrollY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getScrollY())(): Int
```
| **This function is deprecated.**   
|
| 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.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The scroll. |

### getSource

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getSource())(): AccessibilityNodeInfoCompat!
```
| **This function is deprecated.**   
|
| 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.  

|                                                                    Returns                                                                    |
|-----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`!` | The info of the source. |

### getText

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getText](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getText())(): (Mutable)List<CharSequence!>!
```
| **This function is deprecated.**   
|
| 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.  

|                                                                                                                                                  Returns                                                                                                                                                  |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|
| `(`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!>!` | The text. |

### getToIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getToIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getToIndex())(): Int
```
| **This function is deprecated.**   
|
| 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.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The index of selection end or last item index. |

### getWindowId

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [getWindowId](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#getWindowId())(): Int
```
| **This function is deprecated.**   
|
| 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.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|----------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The window id. |

### hashCode

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [hashCode](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#hashCode())(): Int
```
| **This function is deprecated.**   
|
Use[hashCode](https://developer.android.com/reference/java/lang/Object.html#hashCode())directly.  

### isChecked

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [isChecked](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isChecked())(): Boolean
```
| **This function is deprecated.**   
|
| Use[isChecked](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isChecked())directly.

Gets if the source is checked.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the view is checked, false otherwise. |

### isEnabled

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [isEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isEnabled())(): Boolean
```
| **This function is deprecated.**   
|
| Use[isEnabled](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly.

Gets if the source is enabled.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the view is enabled, false otherwise. |

### isFullScreen

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [isFullScreen](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isFullScreen())(): Boolean
```
| **This function is deprecated.**   
|
| Use[isFullScreen](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isFullScreen())directly.

Gets if the source is taking the entire screen.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the source is full screen, false otherwise. |

### isPassword

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [isPassword](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isPassword())(): Boolean
```
| **This function is deprecated.**   
|
| Use[isPassword](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isPassword())directly.

Gets if the source is a password field.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|--------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the view is a password field, false otherwise. |

### isScrollable

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [isScrollable](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#isScrollable())(): Boolean
```
| **This function is deprecated.**   
|
| Use[isScrollable](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isScrollable())directly.

Gets if the source is scrollable.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|----------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the source is scrollable, false otherwise. |

### obtain

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun [obtain](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#obtain())(): AccessibilityRecordCompat!
```
| **This function is deprecated.**   
|
| 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.  

|                                                                  Returns                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------|--------------|
| [AccessibilityRecordCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat)`!` | An instance. |

### obtain

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun [obtain](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#obtain(androidx.core.view.accessibility.AccessibilityRecordCompat))(record: AccessibilityRecordCompat!): AccessibilityRecordCompat!
```
| **This function is deprecated.**   
|
| Use[obtain](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.  

|                                                                  Returns                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------|--------------|
| [AccessibilityRecordCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat)`!` | An instance. |

### recycle

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [recycle](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#recycle())(): Unit
```
| **This function is deprecated.**   
|
| 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.  

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If the record is already recycled. |

### setAddedCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setAddedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setAddedCount(int))(addedCount: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setAddedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setAddedCount(int))directly.

Sets the number of added characters.  

|                                        Parameters                                         |
|-------------------------------------------------------------------------------------------|---------------------------------|
| `addedCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The number of added characters. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setBeforeText

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setBeforeText](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setBeforeText(java.lang.CharSequence))(beforeText: CharSequence!): Unit
```
| **This function is deprecated.**   
|
| Use[setBeforeText](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setBeforeText(java.lang.CharSequence))directly.

Sets the text before a change.  

|                                                   Parameters                                                    |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------|
| `beforeText: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | The text before the change. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setChecked

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setChecked](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setChecked(boolean))(isChecked: Boolean): Unit
```
| **This function is deprecated.**   
|
| Use[setChecked](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setChecked(boolean))directly.

Sets if the source is checked.  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|-----------------------------------------------|
| `isChecked: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the view is checked, false otherwise. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setClassName

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setClassName](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setClassName(java.lang.CharSequence))(className: CharSequence!): Unit
```
| **This function is deprecated.**   
|
| Use[setClassName](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setClassName(java.lang.CharSequence))directly.

Sets the class name of the source.  

|                                                   Parameters                                                   |
|----------------------------------------------------------------------------------------------------------------|----------------|
| `className: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | The lass name. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setContentDescription

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setContentDescription](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setContentDescription(java.lang.CharSequence))(contentDescription: CharSequence!): Unit
```
| **This function is deprecated.**   
|
| Use[setContentDescription](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setContentDescription(java.lang.CharSequence))directly.

Sets the description of the source.  

|                                                       Parameters                                                        |
|-------------------------------------------------------------------------------------------------------------------------|------------------|
| `contentDescription: `[CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | The description. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setCurrentItemIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setCurrentItemIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setCurrentItemIndex(int))(currentItemIndex: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setCurrentItemIndex](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.  

|                                           Parameters                                            |
|-------------------------------------------------------------------------------------------------|-------------------------|
| `currentItemIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The current item index. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setEnabled

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setEnabled](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setEnabled(boolean))(isEnabled: Boolean): Unit
```
| **This function is deprecated.**   
|
| Use[isEnabled](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#isEnabled())directly.

Sets if the source is enabled.  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|-----------------------------------------------|
| `isEnabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the view is enabled, false otherwise. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setFromIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setFromIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setFromIndex(int))(fromIndex: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setFromIndex](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.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
| `fromIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The index of the first character or selection start or the first visible item. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setFullScreen

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setFullScreen](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setFullScreen(boolean))(isFullScreen: Boolean): Unit
```
| **This function is deprecated.**   
|
| Use[setFullScreen](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setFullScreen(boolean))directly.

Sets if the source is taking the entire screen.  

|                                             Parameters                                              |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------|
| `isFullScreen: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the source is full screen, false otherwise. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setItemCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setItemCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setItemCount(int))(itemCount: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setItemCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setItemCount(int))directly.

Sets the number of items that can be visited.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|----------------------|
| `itemCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The number of items. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setMaxScrollX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(int))(maxScrollX: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(android.view.accessibility.AccessibilityRecord,int))instead.

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

|                                        Parameters                                         |
|-------------------------------------------------------------------------------------------|-----------------|
| `maxScrollX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The max scroll. |

### setMaxScrollX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)  

```
@ReplaceWith(expression = "record.setMaxScrollX(maxScrollX)")
java-static fun [setMaxScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollX(android.view.accessibility.AccessibilityRecord,int))(record: AccessibilityRecord, maxScrollX: Int): Unit
```
| **This function is deprecated.**   
|
| Call setMaxScrollX directly.

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

|                                                          Parameters                                                          |
|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| `record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html) | The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. |
| `maxScrollX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                    | The max scroll.                                                                                                                       |

### setMaxScrollY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(int))(maxScrollY: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(android.view.accessibility.AccessibilityRecord,int))instead.

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

|                                        Parameters                                         |
|-------------------------------------------------------------------------------------------|-----------------|
| `maxScrollY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The max scroll. |

### setMaxScrollY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)  

```
@ReplaceWith(expression = "record.setMaxScrollY(maxScrollY)")
java-static fun [setMaxScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setMaxScrollY(android.view.accessibility.AccessibilityRecord,int))(record: AccessibilityRecord, maxScrollY: Int): Unit
```
| **This function is deprecated.**   
|
| Call setMaxScrollY directly.

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

|                                                          Parameters                                                          |
|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| `record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html) | The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. |
| `maxScrollY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                    | The max scroll.                                                                                                                       |

### setParcelableData

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setParcelableData](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setParcelableData(android.os.Parcelable))(parcelableData: Parcelable!): Unit
```
| **This function is deprecated.**   
|
| Use[setParcelableData](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.  

|                                              Parameters                                               |
|-------------------------------------------------------------------------------------------------------|----------------------|
| `parcelableData: `[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`!` | The parcelable data. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setPassword

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setPassword](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setPassword(boolean))(isPassword: Boolean): Unit
```
| **This function is deprecated.**   
|
| Use[setPassword](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setPassword(boolean))directly.

Sets if the source is a password field.  

|                                            Parameters                                             |
|---------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| `isPassword: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the view is a password field, false otherwise. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setRemovedCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setRemovedCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setRemovedCount(int))(removedCount: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setRemovedCount](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setRemovedCount(int))directly.

Sets the number of removed characters.  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|-----------------------------------|
| `removedCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The number of removed characters. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setScrollX

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setScrollX](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setScrollX(int))(scrollX: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setScrollX](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollX(int))directly.

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

|                                       Parameters                                       |
|----------------------------------------------------------------------------------------|-------------|
| `scrollX: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The scroll. |

### setScrollY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setScrollY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setScrollY(int))(scrollY: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setScrollY](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollY(int))directly.

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

|                                       Parameters                                       |
|----------------------------------------------------------------------------------------|-------------|
| `scrollY: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The scroll. |

### setScrollable

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setScrollable](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setScrollable(boolean))(scrollable: Boolean): Unit
```
| **This function is deprecated.**   
|
| Use[setScrollable](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setScrollable(boolean))directly.

Sets if the source is scrollable.  

|                                            Parameters                                             |
|---------------------------------------------------------------------------------------------------|----------------------------------------------------|
| `scrollable: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | True if the source is scrollable, false otherwise. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setSource

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setSource(android.view.View))(source: View!): Unit
```
| **This function is deprecated.**   
|
| Use[setSource](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html#setSource(android.view.View))directly.

Sets the event source.  

|                                     Parameters                                      |
|-------------------------------------------------------------------------------------|-------------|
| `source: `[View](https://developer.android.com/reference/android/view/View.html)`!` | The source. |

|                                                     Throws                                                      |
|-----------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| [java.lang.IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException.html) | If called from an AccessibilityService. |

### setSource

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setSource(android.view.View,int))(root: View!, virtualDescendantId: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setSource](https://developer.android.com/reference/kotlin/androidx/core/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.  

|                                             Parameters                                             |
|----------------------------------------------------------------------------------------------------|-----------------------------------|
| `root: `[View](https://developer.android.com/reference/android/view/View.html)`!`                  | The root of the virtual subtree.  |
| `virtualDescendantId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The id of the virtual descendant. |

### setSource

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.15.0](https://developer.android.com/jetpack/androidx/releases/core#1.15.0)  

```
@ReplaceWith(expression = "record.setSource(root, virtualDescendantId)")
java-static fun [setSource](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setSource(android.view.accessibility.AccessibilityRecord,android.view.View,int))(
    record: AccessibilityRecord,
    root: View?,
    virtualDescendantId: Int
): Unit
```
| **This function is deprecated.**   
|
| Call setSource directly.

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.  

|                                                          Parameters                                                          |
|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| `record: `[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html) | The[AccessibilityRecord](https://developer.android.com/reference/android/view/accessibility/AccessibilityRecord.html)instance to use. |
| `root: `[View](https://developer.android.com/reference/android/view/View.html)`?`                                            | The root of the virtual subtree.                                                                                                      |
| `virtualDescendantId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                           | The id of the virtual descendant.                                                                                                     |

### setToIndex

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun [setToIndex](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityRecordCompat#setToIndex(int))(toIndex: Int): Unit
```
| **This function is deprecated.**   
|
| Use[setToIndex](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.  

|                                       Parameters                                       |
|----------------------------------------------------------------------------------------|------------------------------------------------|
| `toIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The index of selection end or last item index. |