summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/accessibility
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2013-10-04 13:16:51 -0700
committerAlan Viverette <alanv@google.com>2013-10-04 13:16:51 -0700
commitaf43110c020a9557233a64c08cede07bb37fe440 (patch)
tree2695ac6290457356c3c9390ad1eeb2a6f3b76adf /core/java/android/view/accessibility
parentcac2fd302e844a4a46bb1749a2d2ed4739b4dc53 (diff)
downloadframeworks_base-af43110c020a9557233a64c08cede07bb37fe440.zip
frameworks_base-af43110c020a9557233a64c08cede07bb37fe440.tar.gz
frameworks_base-af43110c020a9557233a64c08cede07bb37fe440.tar.bz2
Provide example actions in AccessibilityEvent.setAction() docs
BUG: 11070461 Change-Id: I05799e721dd1285e5165e94c7d63084010fa478b
Diffstat (limited to 'core/java/android/view/accessibility')
-rw-r--r--core/java/android/view/accessibility/AccessibilityEvent.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/view/accessibility/AccessibilityEvent.java b/core/java/android/view/accessibility/AccessibilityEvent.java
index 7e2bffa..f635eee 100644
--- a/core/java/android/view/accessibility/AccessibilityEvent.java
+++ b/core/java/android/view/accessibility/AccessibilityEvent.java
@@ -910,10 +910,20 @@ public final class AccessibilityEvent extends AccessibilityRecord implements Par
/**
* Sets the performed action that triggered this event.
+ * <p>
+ * Valid actions are defined in {@link AccessibilityNodeInfo}:
+ * <ul>
+ * <li>{@link AccessibilityNodeInfo#ACTION_ACCESSIBILITY_FOCUS}
+ * <li>{@link AccessibilityNodeInfo#ACTION_CLEAR_ACCESSIBILITY_FOCUS}
+ * <li>{@link AccessibilityNodeInfo#ACTION_CLEAR_FOCUS}
+ * <li>{@link AccessibilityNodeInfo#ACTION_CLEAR_SELECTION}
+ * <li>{@link AccessibilityNodeInfo#ACTION_CLICK}
+ * <li>etc.
+ * </ul>
*
* @param action The action.
- *
* @throws IllegalStateException If called from an AccessibilityService.
+ * @see AccessibilityNodeInfo#performAction(int)
*/
public void setAction(int action) {
enforceNotSealed();