ScreenOrientationRule
public final class ScreenOrientationRule implements TestRule
Restores the screen orientation when a test case finishes.
Summary
Public constructors |
|---|
ScreenOrientationRule(ScreenOrientation defaultOrientation) |
Public methods |
|
|---|---|
@NonNull Statement |
apply(@NonNull Statement statement, @NonNull Description description) |
Public constructors
ScreenOrientationRule
public ScreenOrientationRule(ScreenOrientation defaultOrientation)
| Parameters | |
|---|---|
ScreenOrientation defaultOrientation |
: the screen orientation will be set to the specified value, or the one that the test starts with if none is given. |