AccessibilityRecordCompat
open class AccessibilityRecordCompat
kotlin.Any | |
↳ | androidx.core.view.accessibility.AccessibilityRecordCompat |
Helper for accessing AccessibilityRecord
.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Boolean | |
open Int |
Gets the number of added characters. |
open CharSequence! |
Sets the text before a change. |
open CharSequence! |
Gets the class name of the source. |
open CharSequence! |
Gets the description of the source. |
open Int |
Gets the index of the source in the list of items the can be visited. |
open 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. |
open Any! |
getImpl() |
open Int |
Gets the number of items that can be visited. |
open Int |
Gets the max scroll offset of the source left edge in pixels. |
open static Int |
getMaxScrollX(record: AccessibilityRecord!) Gets the max scroll offset of the source left edge in pixels. |
open Int |
Gets the max scroll offset of the source top edge in pixels. |
open static Int |
getMaxScrollY(record: AccessibilityRecord!) Gets the max scroll offset of the source top edge in pixels. |
open Parcelable! |
Gets the |
open Int |
Gets the number of removed characters. |
open Int |
Gets the scroll offset of the source left edge in pixels. |
open Int |
Gets the scroll offset of the source top edge in pixels. |
open AccessibilityNodeInfoCompat! |
Gets the |
open MutableList<CharSequence!>! |
getText() Gets the text of the event. |
open Int |
Gets the index of text selection end or the index of the last visible item when scrolling. |
open Int |
Gets the id of the window from which the event comes from. |
open Int |
hashCode() |
open Boolean |
Gets if the source is checked. |
open Boolean |
Gets if the source is enabled. |
open Boolean |
Gets if the source is taking the entire screen. |
open Boolean |
Gets if the source is a password field. |
open Boolean |
Gets if the source is scrollable. |
open static AccessibilityRecordCompat! |
obtain(record: AccessibilityRecordCompat!) Returns a cached instance if such is available or a new one is instantiated. |
open static AccessibilityRecordCompat! |
obtain() Returns a cached instance if such is available or a new one is instantiated. |
open Unit |
recycle() Return an instance back to be reused. |
open Unit |
setAddedCount(addedCount: Int) Sets the number of added characters. |
open Unit |
setBeforeText(beforeText: CharSequence!) Sets the text before a change. |
open Unit |
setChecked(isChecked: Boolean) Sets if the source is checked. |
open Unit |
setClassName(className: CharSequence!) Sets the class name of the source. |
open Unit |
setContentDescription(contentDescription: CharSequence!) Sets the description of the source. |
open Unit |
setCurrentItemIndex(currentItemIndex: Int) Sets the index of the source in the list of items that can be visited. |
open Unit |
setEnabled(isEnabled: Boolean) Sets if the source is enabled. |
open Unit |
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. |
open Unit |
setFullScreen(isFullScreen: Boolean) Sets if the source is taking the entire screen. |
open Unit |
setItemCount(itemCount: Int) Sets the number of items that can be visited. |
open Unit |
setMaxScrollX(maxScrollX: Int) Sets the max scroll offset of the source left edge in pixels. |
open static Unit |
setMaxScrollX(record: AccessibilityRecord!, maxScrollX: Int) Sets the max scroll offset of the source left edge in pixels. |
open Unit |
setMaxScrollY(maxScrollY: Int) Sets the max scroll offset of the source top edge in pixels. |
open static Unit |
setMaxScrollY(record: AccessibilityRecord!, maxScrollY: Int) Sets the max scroll offset of the source top edge in pixels. |
open Unit |
setParcelableData(parcelableData: Parcelable!) Sets the |
open Unit |
setPassword(isPassword: Boolean) Sets if the source is a password field. |
open Unit |
setRemovedCount(removedCount: Int) Sets the number of removed characters. |
open Unit |
setScrollX(scrollX: Int) Sets the scroll offset of the source left edge in pixels. |
open Unit |
setScrollY(scrollY: Int) Sets the scroll offset of the source top edge in pixels. |
open Unit |
setScrollable(scrollable: Boolean) Sets if the source is scrollable. |
open Unit |
Sets the event source. |
open Unit |
Sets the source to be a virtual descendant of the given |
open static Unit |
setSource(@NonNull record: AccessibilityRecord, root: View!, virtualDescendantId: Int) Sets the source to be a virtual descendant of the given |
open Unit |
setToIndex(toIndex: Int) Sets the index of text selection end or the index of the last visible item when scrolling. |
Public constructors
<init>
AccessibilityRecordCompat(record: Any!)
Deprecated: This is not type safe. If you want to modify an AccessibilityEvent
's properties defined in android.view.accessibility.AccessibilityRecord
use AccessibilityEventCompat#asRecord(AccessibilityEvent)
. This method will be removed in a subsequent release of the support library.
Public methods
getAddedCount
open fungetAddedCount(): Int
Deprecated: Use AccessibilityRecord#getAddedCount()
directly.
Gets the number of added characters.
Return | |
---|---|
Int |
The number of added characters. |
getBeforeText
open fungetBeforeText(): CharSequence!
Deprecated: Use AccessibilityRecord#getBeforeText()
directly.
Sets the text before a change.
Return | |
---|---|