ScreenOrientationRule


class ScreenOrientationRule : TestRule


Restores the screen orientation when a test case finishes.

Summary

Public constructors

Public functions

open Statement
apply(statement: Statement, description: Description)

Public constructors

ScreenOrientationRule

ScreenOrientationRule()

ScreenOrientationRule

ScreenOrientationRule(defaultOrientation: ScreenOrientation?)
Parameters
defaultOrientation: ScreenOrientation?

: the screen orientation will be set to the specified value, or the one that the test starts with if none is given.

Public functions

apply

open fun apply(statement: Statement, description: Description): Statement