AccessibilityRecordCompat

Helper for accessing AccessibilityRecord.

Constructors

Link copied to clipboard
constructor(record: Any)

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun getAddedCount(): Int
Gets the number of added characters.
Link copied to clipboard
Sets the text before a change.
Link copied to clipboard
Gets the class name of the source.
Link copied to clipboard
Gets the description of the source.
Link copied to clipboard
Gets the index of the source in the list of items the can be visited.
Link copied to clipboard
open fun getFromIndex(): Int
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.
Link copied to clipboard
open fun getImpl(): Any
Link copied to clipboard
open fun getItemCount(): Int
Gets the number of items that can be visited.
Link copied to clipboard
open fun getMaxScrollX(): Int
Gets the max scroll offset of the source left edge in pixels.
Link copied to clipboard
open fun getMaxScrollY(): Int
Gets the max scroll offset of the source top edge in pixels.
Link copied to clipboard
Gets the Parcelable data.
Link copied to clipboard
open fun getRemovedCount(): Int
Gets the number of removed characters.
Link copied to clipboard
open fun getScrollX(): Int
Gets the scroll offset of the source left edge in pixels.
Link copied to clipboard
open fun getScrollY(): Int
Gets the scroll offset of the source top edge in pixels.
Link copied to clipboard
Gets the AccessibilityNodeInfo of the event source.
Link copied to clipboard
Gets the text of the event.
Link copied to clipboard
open fun getToIndex(): Int
Gets the index of text selection end or the index of the last visible item when scrolling.
Link copied to clipboard
open fun getWindowId(): Int
Gets the id of the window from which the event comes from.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isChecked(): Boolean
Gets if the source is checked.
Link copied to clipboard
open fun isEnabled(): Boolean
Gets if the source is enabled.
Link copied to clipboard
open fun isFullScreen(): Boolean
Gets if the source is taking the entire screen.
Link copied to clipboard
open fun isPassword(): Boolean
Gets if the source is a password field.
Link copied to clipboard
open fun isScrollable(): Boolean
Gets if the source is scrollable.
Link copied to clipboard
Returns a cached instance if such is available or a new one is instantiated.
Link copied to clipboard
open fun recycle()
Return an instance back to be reused.
Link copied to clipboard
open fun setAddedCount(addedCount: Int)
Sets the number of added characters.
Link copied to clipboard
open fun setBeforeText(beforeText: CharSequence)
Sets the text before a change.
Link copied to clipboard
open fun setChecked(isChecked: Boolean)
Sets if the source is checked.
Link copied to clipboard
open fun setClassName(className: CharSequence)
Sets the class name of the source.
Link copied to clipboard
open fun setContentDescription(contentDescription: CharSequence)
Sets the description of the source.
Link copied to clipboard
open fun setCurrentItemIndex(currentItemIndex: Int)
Sets the index of the source in the list of items that can be visited.
Link copied to clipboard
open fun setEnabled(isEnabled: Boolean)
Sets if the source is enabled.
Link copied to clipboard
open fun setFromIndex(fromIndex: Int)
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.
Link copied to clipboard
open fun setFullScreen(isFullScreen: Boolean)
Sets if the source is taking the entire screen.
Link copied to clipboard
open fun setItemCount(itemCount: Int)
Sets the number of items that can be visited.
Link copied to clipboard
open fun setMaxScrollX(maxScrollX: Int)
open fun setMaxScrollX(@NonNull record: AccessibilityRecord, maxScrollX: Int)
Sets the max scroll offset of the source left edge in pixels.
Link copied to clipboard
open fun setMaxScrollY(maxScrollY: Int)
open fun setMaxScrollY(@NonNull record: AccessibilityRecord, maxScrollY: Int)
Sets the max scroll offset of the source top edge in pixels.
Link copied to clipboard
open fun setParcelableData(parcelableData: Parcelable)
Sets the Parcelable data of the event.
Link copied to clipboard
open fun setPassword(isPassword: Boolean)
Sets if the source is a password field.
Link copied to clipboard
open fun setRemovedCount(removedCount: Int)
Sets the number of removed characters.
Link copied to clipboard
open fun setScrollable(scrollable: Boolean)
Sets if the source is scrollable.
Link copied to clipboard
open fun setScrollX(scrollX: Int)
Sets the scroll offset of the source left edge in pixels.
Link copied to clipboard
open fun setScrollY(scrollY: Int)
Sets the scroll offset of the source top edge in pixels.
Link copied to clipboard
open fun setSource(source: View)
Sets the event source.
open fun setSource(root: View, virtualDescendantId: Int)
open fun setSource(@NonNull record: AccessibilityRecord, @Nullable root: View, virtualDescendantId: Int)
Sets the source to be a virtual descendant of the given root.
Link copied to clipboard
open fun setToIndex(toIndex: Int)
Sets the index of text selection end or the index of the last visible item when scrolling.