{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class KeyEventAction extends KeyEventActionBase
| java.lang.Object | ||
| ↳ | androidx.test.espresso.action.KeyEventActionBase | |
| ↳ | androidx.test.espresso.action.KeyEventAction | |
Enables pressing KeyEvents on views.
Public constructors |
|
|---|---|
KeyEventAction(EspressoKey espressoKey) |
|
Public methods |
|
|---|---|
void |
perform(UiController uiController, View view)Performs this action on the given view. |
Inherited methods |
|
|---|---|
Inherited Constants |
||||||
|---|---|---|---|---|---|---|
|
||||||
public void perform(UiController uiController, View view)
Performs this action on the given view.
| Parameters | |
|---|---|
UiController uiController |
the controller to use to interact with the UI. |
View view |
the view to act upon. never null. |