AccessibilityRecordCompat

public class AccessibilityRecordCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.accessibility.AccessibilityRecordCompat


Helper for accessing AccessibilityRecord.

Summary

Public constructors

AccessibilityRecordCompat(Object record)

This constructor is deprecated. This is not type safe. If you want to modify an AccessibilityEvent's properties defined in AccessibilityRecord use AccessibilityEventCompat.asRecord(AccessibilityEvent). This method will be removed in a subsequent release of the support library.

Public methods

boolean equals(Object obj)

This method is deprecated. Use AccessibilityRecord directly.

int getAddedCount()

This method is deprecated. Use AccessibilityRecord.getAddedCount() directly.

CharSequence getBeforeText()

This method is deprecated. Use AccessibilityRecord.getBeforeText() directly.

CharSequence getClassName()

This method is deprecated. Use AccessibilityRecord.getClassName() directly.

CharSequence getContentDescription()

This method is deprecated. Use AccessibilityRecord.getContentDescription() directly.

int getCurrentItemIndex()

This method is deprecated. Use AccessibilityRecord.getCurrentItemIndex() directly.

int getFromIndex()

This method is deprecated. Use AccessibilityRecord.getFromIndex() directly.

Object getImpl()

This method is deprecated. This method will be removed in a subsequent release of the support library.

int getItemCount()

This method is deprecated. Use AccessibilityRecord.getItemCount() directly.

int getMaxScrollX()

This method is deprecated. Use getMaxScrollX(AccessibilityRecord) instead.

static int getMaxScrollX(AccessibilityRecord record)

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

int getMaxScrollY()

This method is deprecated. Use getMaxScrollY(AccessibilityRecord) instead.

static int getMaxScrollY(AccessibilityRecord record)

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

Parcelable getParcelableData()

This method is deprecated. Use AccessibilityRecord.getParcelableData() directly.

int getRemovedCount()

This method is deprecated. Use AccessibilityRecord.getRemovedCount() directly.

int getScrollX()

This method is deprecated. Use AccessibilityRecord.getScrollX() directly.

int getScrollY()

This method is deprecated. Use AccessibilityRecord.getScrollY() directly.

AccessibilityNodeInfoCompat getSource()

This method is deprecated. Use AccessibilityRecord.getSource() directly.

List<CharSequence> getText()

This method is deprecated. Use AccessibilityRecord.getText() directly.

int getToIndex()

This method is deprecated. Use AccessibilityRecord.getToIndex() directly.

int getWindowId()

This method is deprecated. Use AccessibilityRecord.getWindowId() directly.

int hashCode()

This method is deprecated. Use Object.hashCode() directly.

boolean isChecked()

This method is deprecated. Use AccessibilityRecord.isChecked() directly.

boolean isEnabled()

This method is deprecated. Use AccessibilityRecord.isEnabled() directly.

boolean isFullScreen()

This method is deprecated. Use AccessibilityRecord.isFullScreen() directly.

boolean isPassword()

This method is deprecated. Use AccessibilityRecord.isPassword() directly.

boolean isScrollable()

This method is deprecated. Use AccessibilityRecord.isScrollable() directly.

static AccessibilityRecordCompat obtain(AccessibilityRecordCompat record)

This method is deprecated. Use AccessibilityRecord.obtain(AccessibilityRecord) directly.

static AccessibilityRecordCompat obtain()

This method is deprecated. Use AccessibilityRecord.obtain() directly.

void recycle()

This method is deprecated. Use AccessibilityRecord.recycle() directly.

void setAddedCount(int addedCount)

This method is deprecated. Use AccessibilityRecord.setAddedCount(int) directly.

void setBeforeText(CharSequence beforeText)

This method is deprecated. Use AccessibilityRecord.setBeforeText(CharSequence) directly.

void setChecked(boolean isChecked)

This method is deprecated. Use AccessibilityRecord.setChecked(boolean) directly.

void setClassName(CharSequence className)

This method is deprecated. Use AccessibilityRecord.setClassName(CharSequence) directly.

void setContentDescription(CharSequence contentDescription)

This method is deprecated. Use AccessibilityRecord.setContentDescription(CharSequence) directly.

void setCurrentItemIndex(int currentItemIndex)

This method is deprecated. Use AccessibilityRecord.setCurrentItemIndex(int) directly.

void setEnabled(boolean isEnabled)

This method is deprecated. Use AccessibilityRecord.isEnabled() directly.

void setFromIndex(int fromIndex)

This method is deprecated. Use AccessibilityRecord.setFromIndex(int) directly.

void setFullScreen(boolean isFullScreen)

This method is deprecated. Use AccessibilityRecord.setFullScreen(boolean) directly.

void setItemCount(int itemCount)

This method is deprecated. Use AccessibilityRecord.setItemCount(int) directly.

void setMaxScrollX(int maxScrollX)

This method is deprecated. Use setMaxScrollX(AccessibilityRecord, int) instead.

static void setMaxScrollX(AccessibilityRecord record, int maxScrollX)

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

static void setMaxScrollY(AccessibilityRecord record, int maxScrollY)

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

void setMaxScrollY(int maxScrollY)

This method is deprecated. Use setMaxScrollY(AccessibilityRecord, int) instead.

void setParcelableData(Parcelable parcelableData)

This method is deprecated. Use AccessibilityRecord.setParcelableData(Parcelable) directly.

void setPassword(boolean isPassword)

This method is deprecated. Use AccessibilityRecord.setPassword(boolean) directly.

void setRemovedCount(int removedCount)

This method is deprecated. Use AccessibilityRecord.setRemovedCount(int) directly.

void setScrollX(int scrollX)

This method is deprecated. Use AccessibilityRecord.setScrollX(int) directly.

void setScrollY(int scrollY)

This method is deprecated. Use AccessibilityRecord.setScrollY(int) directly.

void setScrollable(boolean scrollable)

This method is deprecated. Use AccessibilityRecord.setScrollable(boolean) directly.

void setSource(View root, int virtualDescendantId)

This method is deprecated. Use setSource(AccessibilityRecord, View, int) instead.

void setSource(View source)

This method is deprecated. Use AccessibilityRecord.setSource(View) directly.

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

Sets the source to be a virtual descendant of the given root.

void setToIndex(int toIndex)

This method is deprecated. Use AccessibilityRecord.setToIndex(int) directly.

Inherited methods

Public constructors

AccessibilityRecordCompat

public AccessibilityRecordCompat (Object record)

This constructor is deprecated.
This is not type safe. If you want to modify an AccessibilityEvent's properties defined in AccessibilityRecord use AccessibilityEventCompat.asRecord(AccessibilityEvent). This method will be removed in a subsequent release of the support library.

Parameters
record Object

Public methods

equals

public boolean equals (Object obj)

This method is deprecated.
Use AccessibilityRecord directly.

Parameters
obj Object

Returns
boolean

getAddedCount

public int getAddedCount ()

This method is deprecated.
Use AccessibilityRecord.getAddedCount() directly.

Gets the number of added characters.

Returns
int The number of added characters.

getBeforeText

public CharSequence getBeforeText ()

This method is deprecated.
Use AccessibilityRecord.getBeforeText() directly.

Sets the text before a change.

Returns
CharSequence The text before the change.

getClassName

public CharSequence getClassName ()

This method is deprecated.
Use AccessibilityRecord.getClassName() directly.

Gets the class name of the source.

Returns
CharSequence The class name.

getContentDescription

public CharSequence getContentDescription ()

This method is deprecated.
Use AccessibilityRecord.getContentDescription() directly.

Gets the description of the source.

Returns
CharSequence The description.

getCurrentItemIndex

public int getCurrentItemIndex ()

This method is deprecated.
Use AccessibilityRecord.getCurrentItemIndex() directly.

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

Returns
int The current item index.

getFromIndex

public int getFromIndex ()

This method is deprecated.
Use AccessibilityRecord.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 The index of the first character or selection start or the first visible item.

getImpl

public Object getImpl ()

This method is deprecated.
This method will be removed in a subsequent release of the support library.

Returns
Object The wrapped implementation.

getItemCount

public int getItemCount ()

This method is deprecated.
Use AccessibilityRecord.getItemCount() directly.

Gets the number of items that can be visited.

Returns
int The number of items.

getMaxScrollX

public int getMaxScrollX ()

This method is deprecated.
Use getMaxScrollX(AccessibilityRecord) instead.

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

Returns
int The max scroll.

getMaxScrollX

public static int getMaxScrollX (AccessibilityRecord record)

Gets the max scroll offset of the source l