belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
AccessibilityRecordCompat
public
class
AccessibilityRecordCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.view.accessibility.AccessibilityRecordCompat |
Helper for accessing AccessibilityRecord
.
Summary
Public constructors | |
---|---|
AccessibilityRecordCompat(Object record)
This constructor was deprecated
in API level 22.1.0.
This is not type safe. If you want to modify an
|
Public methods | |
---|---|
boolean
|
equals(Object obj)
This method was deprecated
in API level 26.1.0.
Use |
int
|
getAddedCount()
This method was deprecated
in API level 26.1.0.
Use |
CharSequence
|
getBeforeText()
This method was deprecated
in API level 26.1.0.
Use |
CharSequence
|
getClassName()
This method was deprecated
in API level 26.1.0.
Use |
CharSequence
|
getContentDescription()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getCurrentItemIndex()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getFromIndex()
This method was deprecated
in API level 26.1.0.
Use |
Object
|
getImpl()
This method was deprecated in API level 22.1.0. This method will be removed in a subsequent release of the support library. |
int
|
getItemCount()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getMaxScrollX()
This method was deprecated
in API level 26.1.0.
Use |
static
int
|
getMaxScrollX(AccessibilityRecord record)
Gets the max scroll offset of the source left edge in pixels. |
int
|
getMaxScrollY()
This method was deprecated
in API level 26.1.0.
Use |
static
int
|
getMaxScrollY(AccessibilityRecord record)
Gets the max scroll offset of the source top edge in pixels. |
Parcelable
|
getParcelableData()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getRemovedCount()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getScrollX()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getScrollY()
This method was deprecated
in API level 26.1.0.
Use |
AccessibilityNodeInfoCompat
|
getSource()
This method was deprecated
in API level 26.1.0.
Use |
List<CharSequence>
|
getText()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getToIndex()
This method was deprecated
in API level 26.1.0.
Use |
int
|
getWindowId()
This method was deprecated
in API level 26.1.0.
Use |
int
|
hashCode()
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
isChecked()
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
isEnabled()
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
isFullScreen()
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
isPassword()
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
isScrollable()
This method was deprecated
in API level 26.1.0.
Use |
static
AccessibilityRecordCompat
|
obtain(AccessibilityRecordCompat record)
This method was deprecated
in API level 26.1.0.
Use |
static
AccessibilityRecordCompat
|
obtain()
This method was deprecated
in API level 26.1.0.
Use |
void
|
recycle()
This method was deprecated
in API level 26.1.0.
Use |
void
|
setAddedCount(int addedCount)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setBeforeText(CharSequence beforeText)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setChecked(boolean isChecked)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setClassName(CharSequence className)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setContentDescription(CharSequence contentDescription)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setCurrentItemIndex(int currentItemIndex)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setEnabled(boolean isEnabled)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setFromIndex(int fromIndex)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setFullScreen(boolean isFullScreen)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setItemCount(int itemCount)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setMaxScrollX(int maxScrollX)
This method was deprecated
in API level 26.1.0.
Use |
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 was deprecated
in API level 26.1.0.
Use |
void
|
setParcelableData(Parcelable parcelableData)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setPassword(boolean isPassword)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setRemovedCount(int removedCount)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setScrollX(int scrollX)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setScrollY(int scrollY)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setScrollable(boolean scrollable)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setSource(View root, int virtualDescendantId)
This method was deprecated
in API level 26.1.0.
Use |
void
|
setSource(View source)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
setSource(AccessibilityRecord record, View root, int virtualDescendantId)
Sets the source to be a virtual descendant of the given |
void
|
setToIndex(int toIndex)
This method was deprecated
in API level 26.1.0.
Use |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Public constructors
AccessibilityRecordCompat
AccessibilityRecordCompat (Object record)
This constructor was deprecated
in API level 22.1.0.
This is not type safe. If you want to modify an
AccessibilityEvent
's properties defined in
AccessibilityRecord
use
asRecord(AccessibilityEvent)
. This method will be removed
in a subsequent release of the support library.
Parameters | |
---|---|
record |
Object |
Public methods
equals
boolean equals (Object obj)
This method was deprecated
in API level 26.1.0.
Use AccessibilityRecord
directly.
Parameters | |
---|---|
obj |
Object |
Returns | |
---|---|
boolean |
getAddedCount
int getAddedCount ()
This method was deprecated
in API level 26.1.0.
Use getAddedCount()
directly.
Gets the number of added characters.
Returns | |
---|---|
int |
The number of added characters. |
getBeforeText
CharSequence getBeforeText ()
This method was deprecated
in API level 26.1.0.
Use getBeforeText()
directly.
Sets the text before a change.
Returns | |
---|---|
CharSequence |
The text before the change. |
getClassName
CharSequence getClassName ()
This method was deprecated
in API level 26.1.0.
Use getClassName()
directly.
Gets the class name of the source.
Returns | |
---|---|
CharSequence |
The class name. |
getContentDescription
CharSequence getContentDescription ()
This method was deprecated
in API level 26.1.0.
Use getContentDescription()
directly.
Gets the description of the source.
Returns | |
---|---|
CharSequence |
The description. |
getCurrentItemIndex
int getCurrentItemIndex ()
This method was deprecated
in API level 26.1.0.
Use getCurrentItemIndex()
directly.
Gets the index of the source in the list of items the can be visited.
Returns | |
---|---|
int |
The current item index. |
getFromIndex
int getFromIndex ()
This method was deprecated
in API level 26.1.0.
Use 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
Object getImpl ()
This method was deprecated
in API level 22.1.0.
This method will be removed in a subsequent release of
the support library.
Returns | |
---|---|
Object |
The wrapped implementation. |
getItemCount
int getItemCount ()
This method was deprecated
in API level 26.1.0.
Use getItemCount()
directly.
Gets the number of items that can be visited.
Returns | |
---|---|
int |
The number of items. |
getMaxScrollX
int getMaxScrollX ()
This method was deprecated
in API level 26.1.0.
Use getMaxScrollX(AccessibilityRecord)
instead.
Gets the max scroll offset of the source left edge in pixels.
Returns | |
---|---|
int |
The max scroll. |
getMaxScrollX
int getMaxScrollX (AccessibilityRecord record)
Gets the max scroll offset of the source left edge in pixels.
Parameters | |
---|---|
record |
AccessibilityRecord : The AccessibilityRecord instance to use. |
Returns | |
---|---|
int |
The max scroll. |
getMaxScrollY
int getMaxScrollY ()
This method was deprecated
in API level 26.1.0.
Use getMaxScrollY(AccessibilityRecord)
instead.
Gets the max scroll offset of the source top edge in pixels.
Returns | |
---|---|
int |
The max scroll. |
getMaxScrollY
int getMaxScrollY (AccessibilityRecord record)
Gets the max scroll offset of the source top edge in pixels.
Parameters | |
---|---|
record |
AccessibilityRecord : The AccessibilityRecord instance to use. |
Returns | |
---|---|
int |
The max scroll. |
getParcelableData
Parcelable getParcelableData ()
This method was deprecated
in API level 26.1.0.
Use getParcelableData()
directly.
Gets the Parcelable
data.
Returns | |
---|---|
Parcelable |
The parcelable data. |
getRemovedCount
int getRemovedCount ()
This method was deprecated
in API level 26.1.0.
Use getRemovedCount()
directly.
Gets the number of removed characters.
Returns | |
---|---|
int |
The number of removed characters. |
getScrollX
int getScrollX ()
This method was deprecated
in API level 26.1.0.
Use getScrollX()
directly.
Gets the scroll offset of the source left edge in pixels.
Returns | |
---|---|
int |
The scroll. |
getScrollY
int getScrollY ()
This method was deprecated
in API level 26.1.0.
Use getScrollY()
directly.
Gets the scroll offset of the source top edge in pixels.
Returns | |
---|---|
int |
The scroll. |
getSource
AccessibilityNodeInfoCompat getSource ()
This method was deprecated
in API level 26.1.0.
Use getSource()
directly.
Gets the AccessibilityNodeInfo
of
the event source.
Note: It is a client responsibility to recycle the
received info by calling
AccessibilityNodeInfo#recycle()
to avoid creating of multiple instances.
Returns | |
---|---|
AccessibilityNodeInfoCompat |
The info of the source. |
getText
List<CharSequence> getText ()
This method was deprecated
in API level 26.1.0.
Use 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 | |
---|---|
List<CharSequence> |
The text. |
getToIndex
int getToIndex ()
This method was deprecated
in API level 26.1.0.
Use getToIndex()
directly.
Gets the index of text selection end or the index of the last visible item when scrolling.
Returns | |
---|---|
int |
The index of selection end or last item index. |
getWindowId
int getWindowId ()
This method was deprecated
in API level 26.1.0.
Use getWindowId()
directly.
Gets the id of the window from which the event comes from.
Returns | |
---|---|
int |
The window id. |
hashCode
int hashCode ()
This method was deprecated
in API level 26.1.0.
Use hashCode()
directly.
Returns | |
---|---|
int |