Java android.view.accessibility AccessibilityEvent fields, constructors, methods, implement or subclass

Example usage for Java android.view.accessibility AccessibilityEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view.accessibility AccessibilityEvent.

The text is from its open source code.

Field

intTYPE_VIEW_CLICKED
Represents the event of clicking on a android.view.View like android.widget.Button , android.widget.CompoundButton , etc.
intTYPE_VIEW_LONG_CLICKED
Represents the event of long clicking on a android.view.View like android.widget.Button , android.widget.CompoundButton , etc.
intTYPE_VIEW_SELECTED
Represents the event of selecting an item usually in the context of an android.widget.AdapterView .
intTYPE_VIEW_FOCUSED
Represents the event of setting input focus of a android.view.View .
intTYPE_VIEW_TEXT_CHANGED
Represents the event of changing the text of an android.widget.EditText .
intTYPE_WINDOW_STATE_CHANGED
Represents the event of a change to a visually distinct section of the user interface.
intTYPE_NOTIFICATION_STATE_CHANGED
Represents the event showing a android.app.Notification .
intTYPE_VIEW_HOVER_ENTER
Represents the event of a hover enter over a android.view.View .
intTYPE_VIEW_HOVER_EXIT
Represents the event of a hover exit over a android.view.View .
intTYPE_TOUCH_EXPLORATION_GESTURE_START
Represents the event of starting a touch exploration gesture.
intTYPE_TOUCH_EXPLORATION_GESTURE_END
Represents the event of ending a touch exploration gesture.
intTYPE_WINDOW_CONTENT_CHANGED
Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source.
intTYPE_VIEW_SCROLLED
Represents the event of scrolling a view.
intTYPE_VIEW_TEXT_SELECTION_CHANGED
Represents the event of changing the selection in an android.widget.EditText .
intTYPE_ANNOUNCEMENT
Represents the event of an application making an announcement.
intTYPE_VIEW_ACCESSIBILITY_FOCUSED
Represents the event of gaining accessibility focus.
intTYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
Represents the event of clearing accessibility focus.
intTYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY
Represents the event of traversing the text of a view at a given movement granularity.
intTYPE_GESTURE_DETECTION_START
Represents the event of beginning gesture detection.
intTYPE_GESTURE_DETECTION_END
Represents the event of ending gesture detection.
intTYPE_TOUCH_INTERACTION_START
Represents the event of the user starting to touch the screen.
intTYPE_TOUCH_INTERACTION_END
Represents the event of the user ending to touch the screen.
intTYPE_WINDOWS_CHANGED
Represents the event change in the system windows shown on the screen.
intTYPE_VIEW_CONTEXT_CLICKED
Represents the event of a context click on a android.view.View .
intTYPE_ASSIST_READING_CONTEXT
Represents the event of the assistant currently reading the users screen context.
intCONTENT_CHANGE_TYPE_SUBTREE
Change type for #TYPE_WINDOW_CONTENT_CHANGED event: One or more content changes occurred in the the subtree rooted at the source node, or the subtree's structure changed when a node was added or removed.
intTYPES_ALL_MASK
Mask for AccessibilityEvent all types.
Parcelable.CreatorCREATOR

Method

voidappendRecord(AccessibilityRecord record)
Appends an AccessibilityRecord to the end of event records.
intgetAction()
Gets the performed action that triggered this event.
intgetAddedCount()
Gets the number of added characters.
CharSequencegetBeforeText()
Gets the text before a change.
ClassgetClass()
Returns the runtime class of this Object .
CharSequencegetClassName()
Gets the class name of the source.
intgetContentChangeTypes()
Gets the bit mask of change types signaled by a #TYPE_WINDOW_CONTENT_CHANGED event or #TYPE_WINDOW_STATE_CHANGED .
CharSequencegetContentDescription()
Gets the description of the source.
intgetCurrentItemIndex()
Gets the index of the source in the list of items the can be visited.
longgetEventTime()
Gets the time in which this event was sent.
intgetEventType()
Gets the event type.
intgetFromIndex()
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.
intgetItemCount()
Gets the number of items that can be visited.
intgetMovementGranularity()
Gets the movement granularity that was traversed.
CharSequencegetPackageName()
Gets the package name of the source.
ParcelablegetParcelableData()
Gets the Parcelable data.
intgetRecordCount()
Gets the number of records contained in the event.
intgetRemovedCount()
Gets the number of removed characters.
intgetScrollX()
Gets the scroll offset of the source left edge in pixels.
intgetScrollY()
Gets the scroll offset of the source top edge in pixels.
AccessibilityNodeInfogetSource()
Gets the AccessibilityNodeInfo of the event source.
ListgetText()
Gets the text of the event.
intgetToIndex()
Gets the index of text selection end or the index of the last visible item when scrolling.
intgetWindowId()
Gets the id of the window from which the event comes from.
booleanisChecked()
Gets if the source is checked.
booleanisEnabled()
Gets if the source is enabled.
booleanisFullScreen()
Gets if the source is taking the entire screen.
booleanisPassword()
Gets if the source is a password field.
AccessibilityEventobtain(int eventType)
Returns a cached instance if such is available or a new one is instantiated with its type property set.
AccessibilityEventobtain(AccessibilityEvent event)
Returns a cached instance if such is available or a new one is created.
AccessibilityEventobtain()
Returns a cached instance if such is available or a new one is instantiated.
voidrecycle()
Recycles an instance back to be reused.
voidsetAction(int action)
Sets the performed action that triggered this event.
voidsetAddedCount(int addedCount)
Sets the number of added characters.
voidsetChecked(boolean isChecked)
Sets if the source is checked.
voidsetClassName(CharSequence className)
Sets the class name of the source.
voidsetContentDescription(CharSequence contentDescription)
Sets the description of the source.
voidsetCurrentItemIndex(int currentItemIndex)
Sets the index of the source in the list of items that can be visited.
voidsetEnabled(boolean isEnabled)
Sets if the source is enabled.
voidsetEventTime(long eventTime)
Sets the time in which this event was sent.
voidsetEventType(@EventType int eventType)
Sets the event type.
voidsetFromIndex(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.
voidsetFullScreen(boolean isFullScreen)
Sets if the source is taking the entire screen.
voidsetItemCount(int itemCount)
Sets the number of items that can be visited.
voidsetPackageName(CharSequence packageName)
Sets the package name of the source.
voidsetParcelableData(Parcelable parcelableData)
Sets the Parcelable data of the event.
voidsetPassword(boolean isPassword)
Sets if the source is a password field.
voidsetScrollable(boolean scrollable)
Sets if the source is scrollable.
voidsetScrollY(int scrollY)
Sets the scroll offset of the source top edge in pixels.
voidsetSource(View source)
Sets the event source.
voidsetToIndex(int toIndex)
Sets the index of text selection end or the index of the last visible item when scrolling.
StringtoString()
voidwriteToParcel(Parcel parcel, int flags)