public interface ViewAction
This is part of the test framework public API - developers are free to write their own ViewAction implementations when necessary. When implementing a new ViewAction, follow these rules:
getConstraints
.
Modifier and Type | Method and Description |
---|---|
|
getConstraints()
A mechanism for ViewActions to specify what type of views they can operate on.
|
java.lang.String |
getDescription()
Returns a description of the view action.
|
void |
perform(UiController uiController,
android.view.View view)
Performs this action on the given view.
|
getConstraints()
Matcher
that will be tested prior to calling perform.java.lang.String getDescription()
void perform(UiController uiController, android.view.View view)
uiController
- the controller to use to interact with the UI.view
- the view to act upon. never null.