Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
AccessibilityRecordCompat other = (AccessibilityRecordCompat) obj;
if (mRecord == null) {
if (other.mRecord != null) {
return false;
}
} else if (!mRecord.equals(other.mRecord)) {
return false;
}
return true;
|
public int | getAddedCount()Gets the number of added characters.
return IMPL.getAddedCount(mRecord);
|
public java.lang.CharSequence | getBeforeText()Sets the text before a change.
return IMPL.getBeforeText(mRecord);
|
public java.lang.CharSequence | getClassName()Gets the class name of the source.
return IMPL.getClassName(mRecord);
|
public java.lang.CharSequence | getContentDescription()Gets the description of the source.
return IMPL.getContentDescription(mRecord);
|
public int | getCurrentItemIndex()Gets the index of the source in the list of items the can be visited.
return IMPL.getCurrentItemIndex(mRecord);
|
public int | getFromIndex()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.
return IMPL.getFromIndex(mRecord);
|
public java.lang.Object | getImpl()
return mRecord;
|
public int | getItemCount()Gets the number of items that can be visited.
return IMPL.getItemCount(mRecord);
|
public int | getMaxScrollX()Gets the max scroll offset of the source left edge in pixels.
return IMPL.getMaxScrollX(mRecord);
|
public int | getMaxScrollY()Gets the max scroll offset of the source top edge in pixels.
return IMPL.getMaxScrollY(mRecord);
|
public android.os.Parcelable | getParcelableData()Gets the {@link Parcelable} data.
return IMPL.getParcelableData(mRecord);
|
public int | getRemovedCount()Gets the number of removed characters.
return IMPL.getRemovedCount(mRecord);
|
public int | getScrollX()Gets the scroll offset of the source left edge in pixels.
return IMPL.getScrollX(mRecord);
|
public int | getScrollY()Gets the scroll offset of the source top edge in pixels.
return IMPL.getScrollY(mRecord);
|
public AccessibilityNodeInfoCompat | getSource()Gets the {@link android.view.accessibility.AccessibilityNodeInfo} of
the event source.
Note: It is a client responsibility to recycle the
received info by calling
{@link android.view.accessibility.AccessibilityNodeInfo#recycle()
AccessibilityNodeInfo#recycle()} to avoid creating of multiple instances.
return IMPL.getSource(mRecord);
|
public java.util.List | getText()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.
return IMPL.getText(mRecord);
|
public int | getToIndex()Gets the index of text selection end or the index of the last
visible item when scrolling.
return IMPL.getToIndex(mRecord);
|
public int | getWindowId()Gets the id of the window from which the event comes from.
return IMPL.getWindowId(mRecord);
|
public int | hashCode()
return (mRecord == null) ? 0 : mRecord.hashCode();
|
public boolean | isChecked()Gets if the source is checked.
return IMPL.isChecked(mRecord);
|
public boolean | isEnabled()Gets if the source is enabled.
return IMPL.isEnabled(mRecord);
|
public boolean | isFullScreen()Gets if the source is taking the entire screen.
return IMPL.isFullScreen(mRecord);
|
public boolean | isPassword()Gets if the source is a password field.
return IMPL.isPassword(mRecord);
|
public boolean | isScrollable()Gets if the source is scrollable.
return IMPL.isScrollable(mRecord);
|
public static android.support.v4.view.accessibility.AccessibilityRecordCompat | obtain(android.support.v4.view.accessibility.AccessibilityRecordCompat record)Returns a cached instance if such is available or a new one is
instantiated. The instance is initialized with data from the
given record.
return new AccessibilityRecordCompat(IMPL.obtain(record.mRecord));
|
public static android.support.v4.view.accessibility.AccessibilityRecordCompat | obtain()Returns a cached instance if such is available or a new one is
instantiated.
return new AccessibilityRecordCompat(IMPL.obtain());
|
public void | recycle()Return an instance back to be reused.
Note: You must not touch the object after calling this
function.
IMPL.recycle(mRecord);
|
public void | setAddedCount(int addedCount)Sets the number of added characters.
IMPL.setAddedCount(mRecord, addedCount);
|
public void | setBeforeText(java.lang.CharSequence beforeText)Sets the text before a change.
IMPL.setBeforeText(mRecord, beforeText);
|
public void | setChecked(boolean isChecked)Sets if the source is checked.
IMPL.setChecked(mRecord, isChecked);
|
public void | setClassName(java.lang.CharSequence className)Sets the class name of the source.
IMPL.setClassName(mRecord, className);
|
public void | setContentDescription(java.lang.CharSequence contentDescription)Sets the description of the source.
IMPL.setContentDescription(mRecord, contentDescription);
|
public void | setCurrentItemIndex(int currentItemIndex)Sets the index of the source in the list of items that can be visited.
IMPL.setCurrentItemIndex(mRecord, currentItemIndex);
|
public void | setEnabled(boolean isEnabled)Sets if the source is enabled.
IMPL.setEnabled(mRecord, isEnabled);
|
public void | setFromIndex(int fromIndex)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.
IMPL.setFromIndex(mRecord, fromIndex);
|
public void | setFullScreen(boolean isFullScreen)Sets if the source is taking the entire screen.
IMPL.setFullScreen(mRecord, isFullScreen);
|
public void | setItemCount(int itemCount)Sets the number of items that can be visited.
IMPL.setItemCount(mRecord, itemCount);
|
public void | setMaxScrollX(int maxScrollX)Sets the max scroll offset of the source left edge in pixels.
IMPL.setMaxScrollX(mRecord, maxScrollX);
|
public void | setMaxScrollY(int maxScrollY)Sets the max scroll offset of the source top edge in pixels.
IMPL.setMaxScrollY(mRecord, maxScrollY);
|
public void | setParcelableData(android.os.Parcelable parcelableData)Sets the {@link Parcelable} data of the event.
IMPL.setParcelableData(mRecord, parcelableData);
|
public void | setPassword(boolean isPassword)Sets if the source is a password field.
IMPL.setPassword(mRecord, isPassword);
|
public void | setRemovedCount(int removedCount)Sets the number of removed characters.
IMPL.setRemovedCount(mRecord, removedCount);
|
public void | setScrollX(int scrollX)Sets the scroll offset of the source left edge in pixels.
IMPL.setScrollX(mRecord, scrollX);
|
public void | setScrollY(int scrollY)Sets the scroll offset of the source top edge in pixels.
IMPL.setScrollY(mRecord, scrollY);
|
public void | setScrollable(boolean scrollable)Sets if the source is scrollable.
IMPL.setScrollable(mRecord, scrollable);
|
public void | setSource(android.view.View source)Sets the event source.
IMPL.setSource(mRecord, source);
|
public void | setSource(android.view.View root, int virtualDescendantId)Sets the source to be a virtual descendant of the given root .
If virtualDescendantId equals to {@link View#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.
IMPL.setSource(mRecord, root, virtualDescendantId);
|
public void | setToIndex(int toIndex)Sets the index of text selection end or the index of the last
visible item when scrolling.
IMPL.setToIndex(mRecord, toIndex);
|