/**
  * Sets if the source is scrollable.
  *
  * @param scrollable True if the source is scrollable, false otherwise.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setScrollable(boolean scrollable) {
   IMPL.setScrollable(mRecord, scrollable);
 }
 /**
  * Sets the description of the source.
  *
  * @param contentDescription The description.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setContentDescription(CharSequence contentDescription) {
   IMPL.setContentDescription(mRecord, contentDescription);
 }
 /**
  * Sets the {@link Parcelable} data of the event.
  *
  * @param parcelableData The parcelable data.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setParcelableData(Parcelable parcelableData) {
   IMPL.setParcelableData(mRecord, parcelableData);
 }
 /**
  * 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 The text.
  */
 public List<CharSequence> getText() {
   return IMPL.getText(mRecord);
 }
 /**
  * Sets the text before a change.
  *
  * @param beforeText The text before the change.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setBeforeText(CharSequence beforeText) {
   IMPL.setBeforeText(mRecord, beforeText);
 }
 /**
  * Gets the number of removed characters.
  *
  * @return The number of removed characters.
  */
 public int getRemovedCount() {
   return IMPL.getRemovedCount(mRecord);
 }
 /**
  * Gets the class name of the source.
  *
  * @return The class name.
  */
 public CharSequence getClassName() {
   return IMPL.getClassName(mRecord);
 }
 /**
  * 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.
  *
  * @param fromIndex The index of the first character or selection start or the first visible item.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setFromIndex(int fromIndex) {
   IMPL.setFromIndex(mRecord, fromIndex);
 }
 /**
  * Gets the index of text selection end or the index of the last visible item when scrolling.
  *
  * @return The index of selection end or last item index.
  */
 public int getToIndex() {
   return IMPL.getToIndex(mRecord);
 }
 /**
  * Sets the index of the source in the list of items that can be visited.
  *
  * @param currentItemIndex The current item index.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setCurrentItemIndex(int currentItemIndex) {
   IMPL.setCurrentItemIndex(mRecord, currentItemIndex);
 }
 /**
  * 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 The index of the first character or selection start or the first visible item.
  */
 public int getFromIndex() {
   return IMPL.getFromIndex(mRecord);
 }
 /**
  * Gets the index of the source in the list of items the can be visited.
  *
  * @return The current item index.
  */
 public int getCurrentItemIndex() {
   return IMPL.getCurrentItemIndex(mRecord);
 }
 /**
  * Sets the number of items that can be visited.
  *
  * @param itemCount The number of items.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setItemCount(int itemCount) {
   IMPL.setItemCount(mRecord, itemCount);
 }
 /**
  * Gets the number of items that can be visited.
  *
  * @return The number of items.
  */
 public int getItemCount() {
   return IMPL.getItemCount(mRecord);
 }
 /**
  * Gets the number of added characters.
  *
  * @return The number of added characters.
  */
 public int getAddedCount() {
   return IMPL.getAddedCount(mRecord);
 }
 /**
  * Sets the index of text selection end or the index of the last visible item when scrolling.
  *
  * @param toIndex The index of selection end or last item index.
  */
 public void setToIndex(int toIndex) {
   IMPL.setToIndex(mRecord, toIndex);
 }
 /**
  * Sets the number of added characters.
  *
  * @param addedCount The number of added characters.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setAddedCount(int addedCount) {
   IMPL.setAddedCount(mRecord, addedCount);
 }
 /**
  * Gets the scroll offset of the source left edge in pixels.
  *
  * @return The scroll.
  */
 public int getScrollX() {
   return IMPL.getScrollX(mRecord);
 }
 /**
  * Sets the number of removed characters.
  *
  * @param removedCount The number of removed characters.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setRemovedCount(int removedCount) {
   IMPL.setRemovedCount(mRecord, removedCount);
 }
 /**
  * Sets the scroll offset of the source left edge in pixels.
  *
  * @param scrollX The scroll.
  */
 public void setScrollX(int scrollX) {
   IMPL.setScrollX(mRecord, scrollX);
 }
 /**
  * Sets the class name of the source.
  *
  * @param className The lass name.
  * @throws IllegalStateException If called from an AccessibilityService.
  */
 public void setClassName(CharSequence className) {
   IMPL.setClassName(mRecord, className);
 }
 /**
  * Sets the scroll offset of the source top edge in pixels.
  *
  * @param scrollY The scroll.
  */
 public void setScrollY(int scrollY) {
   IMPL.setScrollY(mRecord, scrollY);
 }
 /**
  * Sets the text before a change.
  *
  * @return The text before the change.
  */
 public CharSequence getBeforeText() {
   return IMPL.getBeforeText(mRecord);
 }
 /**
  * Sets the max scroll offset of the source left edge in pixels.
  *
  * @param maxScrollX The max scroll.
  */
 public void setMaxScrollX(int maxScrollX) {
   IMPL.setMaxScrollX(mRecord, maxScrollX);
 }
 /**
  * Gets the description of the source.
  *
  * @return The description.
  */
 public CharSequence getContentDescription() {
   return IMPL.getContentDescription(mRecord);
 }
 /**
  * Gets the max scroll offset of the source top edge in pixels.
  *
  * @return The max scroll.
  */
 public int getMaxScrollY() {
   return IMPL.getMaxScrollY(mRecord);
 }
 /**
  * Gets the {@link Parcelable} data.
  *
  * @return The parcelable data.
  */
 public Parcelable getParcelableData() {
   return IMPL.getParcelableData(mRecord);
 }
 /**
  * Sets the max scroll offset of the source top edge in pixels.
  *
  * @param maxScrollY The max scroll.
  */
 public void setMaxScrollY(int maxScrollY) {
   IMPL.setMaxScrollY(mRecord, maxScrollY);
 }
 /**
  * Return an instance back to be reused.
  *
  * <p><strong>Note:</strong> You must not touch the object after calling this function.
  *
  * @throws IllegalStateException If the record is already recycled.
  */
 public void recycle() {
   IMPL.recycle(mRecord);
 }
 /**
  * Gets if the source is scrollable.
  *
  * @return True if the source is scrollable, false otherwise.
  */
 public boolean isScrollable() {
   return IMPL.isScrollable(mRecord);
 }