Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

AccessibilityChecks

public final class AccessibilityChecks
extends Object

java.lang.Object
   ↳ androidx.test.espresso.accessibility.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 LATEST to see which checks are run).

Summary

Public methods

static ViewAssertion accessibilityAssertion()
static void disable()

Disables accessibility checking as a global ViewAssertion in ViewActions.

static AccessibilityValidator enable()

Enables accessibility checking as a global ViewAssertion in ViewActions.

Inherited methods

From class java.lang.Object

Public methods

accessibilityAssertion

ViewAssertion accessibilityAssertion ()

Returns
ViewAssertion the backing ViewAssertion that can be used to explicitly check accessibility

disable

void disable ()

Disables accessibility checking as a global ViewAssertion in ViewActions.

Throws
IllegalStateException if accessibility checking in not enabled.

enable

AccessibilityValidator enable ()

Enables accessibility checking as a global ViewAssertion in ViewActions.

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