class AccessibilityChecks


A class to enable automated accessibility checks in Espresso tests. These checks will run as a global ViewAssertion, and cover a variety of accessibility issues (see AccessibilityCheckPreset#LATEST to see which checks are run).

Summary

Public functions

java-static ViewAssertion!
java-static Unit

Disables accessibility checking as a global ViewAssertion in ViewActions.

java-static AccessibilityValidator!

Enables accessibility checking as a global ViewAssertion in ViewActions.

Public functions

accessibilityAssertion

java-static fun accessibilityAssertion(): ViewAssertion!
Returns
ViewAssertion!

the backing ViewAssertion that can be used to explicitly check accessibility

disable

java-static fun disable(): Unit

Disables accessibility checking as a global ViewAssertion in ViewActions.

Throws
java.lang.IllegalStateException

if accessibility checking in not enabled.

enable

java-static fun enable(): AccessibilityValidator!

Enables accessibility checking as a global ViewAssertion in ViewActions.

Returns
AccessibilityValidator!

the backing AccessibilityValidator, on which options for check execution can be set