android.support.v4.view.accessibility
Class AccessibilityEventCompat

java.lang.Object
  extended by android.support.v4.view.accessibility.AccessibilityEventCompat

public class AccessibilityEventCompat
extends Object

Helper for accessing features in AccessibilityEvent introduced after API level 4 in a backwards compatible fashion.


Field Summary
static int TYPE_TOUCH_EXPLORATION_GESTURE_END
          Represents the event of ending a touch exploration gesture.
static int TYPE_TOUCH_EXPLORATION_GESTURE_START
          Represents the event of starting a touch exploration gesture.
static int TYPE_VIEW_HOVER_ENTER
          Represents the event of a hover enter over a View.
static int TYPE_VIEW_HOVER_EXIT
          Represents the event of a hover exit over a View.
static int TYPE_VIEW_SCROLLED
          Represents the event of scrolling a view.
static int TYPE_VIEW_TEXT_SELECTION_CHANGED
          Represents the event of changing the selection in an EditText.
static int TYPE_WINDOW_CONTENT_CHANGED
          Represents the event of changing the content of a window.
 
Method Summary
static void appendRecord(android.view.accessibility.AccessibilityEvent event, AccessibilityRecordCompat record)
          Appends an AccessibilityRecord to the end of event records.
static AccessibilityRecordCompat getRecord(android.view.accessibility.AccessibilityEvent event, int index)
          Gets the record at a given index.
static int getRecordCount(android.view.accessibility.AccessibilityEvent event)
          Gets the number of records contained in the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_VIEW_HOVER_ENTER

public static final int TYPE_VIEW_HOVER_ENTER
Represents the event of a hover enter over a View.

See Also:
Constant Field Values

TYPE_VIEW_HOVER_EXIT

public static final int TYPE_VIEW_HOVER_EXIT
Represents the event of a hover exit over a View.

See Also:
Constant Field Values

TYPE_TOUCH_EXPLORATION_GESTURE_START

public static final int TYPE_TOUCH_EXPLORATION_GESTURE_START
Represents the event of starting a touch exploration gesture.

See Also:
Constant Field Values

TYPE_TOUCH_EXPLORATION_GESTURE_END

public static final int TYPE_TOUCH_EXPLORATION_GESTURE_END
Represents the event of ending a touch exploration gesture.

See Also:
Constant Field Values

TYPE_WINDOW_CONTENT_CHANGED

public static final int TYPE_WINDOW_CONTENT_CHANGED
Represents the event of changing the content of a window.

See Also:
Constant Field Values

TYPE_VIEW_SCROLLED

public static final int TYPE_VIEW_SCROLLED
Represents the event of scrolling a view.

See Also:
Constant Field Values

TYPE_VIEW_TEXT_SELECTION_CHANGED

public static final int TYPE_VIEW_TEXT_SELECTION_CHANGED
Represents the event of changing the selection in an EditText.

See Also:
Constant Field Values
Method Detail

getRecordCount

public static int getRecordCount(android.view.accessibility.AccessibilityEvent event)
Gets the number of records contained in the event.

Returns:
The number of records.

appendRecord

public static void appendRecord(android.view.accessibility.AccessibilityEvent event,
                                AccessibilityRecordCompat record)
Appends an AccessibilityRecord to the end of event records.

Parameters:
record - The record to append.
Throws:
IllegalStateException - If called from an AccessibilityService.

getRecord

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

Parameters:
index - The index.
Returns:
The record at the specified index.


Copyright © 2011-2012 Google. All Rights Reserved.