Root
public
final
class
Root
extends Object
java.lang.Object | |
↳ | android.support.test.espresso.Root |
Represents a root view in the application and optionally the layout params of the window holding it.
This class is used internally to determine which view root to run user provided matchers against it is not part of the public api.
Summary
Nested classes | |
---|---|
class |
Root.Builder
|
Public methods | |
---|---|
View
|
getDecorView()
|
EspressoOptional<WindowManager.LayoutParams>
|
getWindowLayoutParams()
|
boolean
|
isReady()
Checks if the |
String
|
toString()
|
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public methods
getWindowLayoutParams
EspressoOptional<WindowManager.LayoutParams> getWindowLayoutParams ()
Returns | |
---|---|
EspressoOptional<WindowManager.LayoutParams> |
isReady
boolean isReady ()
Checks if the Root
is ready. The UI is no longer in flux if layout of the root view is
not being requested and the root view has window focus or is focusable.
Returns | |
---|---|
boolean |
if the root view has focus |
Interfaces
Classes
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.