public class A11yTest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
A11yTest.A11yTestCallbacks
Callback interface for running asynchronous accessibility tests.
|
static class |
A11yTest.Builder
Builder class for A11yTests.
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomRule(Rule rule)
Add a custom rule implementation to the accessibility test.
|
Result |
runTest()
Run an accessibility test synchronously and return a set of results.
|
void |
runTest(A11yTest.A11yTestCallbacks callbacks)
Run accessibility tests on a thread and have results passed to you
via callback.
|
public Result runTest()
public void addCustomRule(Rule rule)
rule
- Your own implementation of a rule.public void runTest(A11yTest.A11yTestCallbacks callbacks)
callbacks
- The callback implementation used upon test completion.