FileDocCategorySizeDatePackage
AccessibilityEventCompat.javaAPI DocAndroid 5.1 API7734Thu Mar 12 22:22:56 GMT 2015android.support.v4.view.accessibility

AccessibilityEventCompat

public class AccessibilityEventCompat extends Object
Helper for accessing features in {@link AccessibilityEvent} introduced after API level 4 in a backwards compatible fashion.

Fields Summary
private static final AccessibilityEventVersionImpl
IMPL
public static final int
TYPE_VIEW_HOVER_ENTER
Represents the event of a hover enter over a {@link android.view.View}.
public static final int
TYPE_VIEW_HOVER_EXIT
Represents the event of a hover exit over a {@link android.view.View}.
public static final int
TYPE_TOUCH_EXPLORATION_GESTURE_START
Represents the event of starting a touch exploration gesture.
public static final int
TYPE_TOUCH_EXPLORATION_GESTURE_END
Represents the event of ending a touch exploration gesture.
public static final int
TYPE_WINDOW_CONTENT_CHANGED
Represents the event of changing the content of a window.
public static final int
TYPE_VIEW_SCROLLED
Represents the event of scrolling a view.
public static final int
TYPE_VIEW_TEXT_SELECTION_CHANGED
Represents the event of changing the selection in an {@link android.widget.EditText}.
public static final int
TYPE_ANNOUNCEMENT
Represents the event of an application making an announcement.
public static final int
TYPE_VIEW_ACCESSIBILITY_FOCUSED
Represents the event of gaining accessibility focus.
public static final int
TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED
Represents the event of clearing accessibility focus.
public static final int
TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY
Represents the event of traversing the text of a view at a given movement granularity.
public static final int
TYPE_GESTURE_DETECTION_START
Represents the event of beginning gesture detection.
public static final int
TYPE_GESTURE_DETECTION_END
Represents the event of ending gesture detection.
public static final int
TYPE_TOUCH_INTERACTION_START
Represents the event of the user starting to touch the screen.
public static final int
TYPE_TOUCH_INTERACTION_END
Represents the event of the user ending to touch the screen.
public static final int
TYPES_ALL_MASK
Mask for {@link AccessibilityEvent} all types.
Constructors Summary
private AccessibilityEventCompat()


    /*
     * Hide constructor from clients.
     */
      

    
Methods Summary
public static voidappendRecord(android.view.accessibility.AccessibilityEvent event, AccessibilityRecordCompat record)
Appends an {@link android.view.accessibility.AccessibilityRecord} to the end of event records.

param
record The record to append.
throws
IllegalStateException If called from an AccessibilityService.

        IMPL.appendRecord(event, record.getImpl());
    
public static AccessibilityRecordCompatasRecord(android.view.accessibility.AccessibilityEvent event)
Creates an {@link AccessibilityRecordCompat} from an {@link AccessibilityEvent} that can be used to manipulate the event properties defined in {@link android.view.accessibility.AccessibilityRecord}.

Note: Do not call {@link AccessibilityRecordCompat#recycle()} on the returned {@link AccessibilityRecordCompat}. Call {@link AccessibilityEvent#recycle()} in case you want to recycle the event.

param
event The from which to create a record.
return
An {@link AccessibilityRecordCompat}.

        return new AccessibilityRecordCompat(event);
    
public static AccessibilityRecordCompatgetRecord(android.view.accessibility.AccessibilityEvent event, int index)
Gets the record at a given index.

param
index The index.
return
The record at the specified index.

        return new AccessibilityRecordCompat(IMPL.getRecord(event, index));
    
public static intgetRecordCount(android.view.accessibility.AccessibilityEvent event)
Gets the number of records contained in the event.

return
The number of records.

        return IMPL.getRecordCount(event);