public class OrientationChangeAction
extends java.lang.Object
implements android.support.test.espresso.ViewAction
An Espresso ViewAction that changes the requestedOrientation of the screen
See original source at https://gist.github.com/nbarraille/03e8910dc1d415ed9740
| Modifier and Type | Method and Description |
|---|---|
org.hamcrest.Matcher<android.view.View> |
getConstraints() |
java.lang.String |
getDescription() |
protected boolean |
hasActivityFixedOrientation(android.app.Activity currentActivity) |
static OrientationChangeAction |
orientationLandscape() |
static OrientationChangeAction |
orientationPortrait() |
void |
perform(android.support.test.espresso.UiController uiController,
android.view.View view) |
public static OrientationChangeAction orientationLandscape()
public static OrientationChangeAction orientationPortrait()
public org.hamcrest.Matcher<android.view.View> getConstraints()
getConstraints in interface android.support.test.espresso.ViewActionpublic java.lang.String getDescription()
getDescription in interface android.support.test.espresso.ViewActionpublic void perform(android.support.test.espresso.UiController uiController,
android.view.View view)
perform in interface android.support.test.espresso.ViewActionprotected boolean hasActivityFixedOrientation(android.app.Activity currentActivity)