public class AccessibilityUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
passesAccessibilityChecks(android.view.View view,
PrintStream printStream)
Check a
View for accessibility. |
static boolean |
passesAccessibilityChecksIfEnabled(android.view.View view)
Check a
View for accessibility. |
public static boolean passesAccessibilityChecksIfEnabled(android.view.View view)
View for accessibility. Only performs checks if
accessibility is enabled using an AccessibilityChecks annotation
or the environment variable a11y_checks_enabled is set to
true. AccessibilityChecks values override those from
environment variables.view - The View to examinefalse if accessibility checks are enabled and a problem
was found. true otherwise.public static boolean passesAccessibilityChecks(android.view.View view,
PrintStream printStream)
View for accessibility. Prints details of issues
found to System.out.view - The View to examineprintStream - A stream to print error messages tofalse if accessibility checks are enabled and a problem
was found. true otherwise.Copyright © 2015. All rights reserved.