Summary: Nested Classes | Methods | Inherited Methods | [Expand All]

# 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()`
`Optional<WindowManager.LayoutParams>` | `getWindowLayoutParams()`
`String` | `toString()`

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`

## Public methods

### getDecorView

    View getDecorView ()

Returns
`View` |

### getWindowLayoutParams

    Optional<WindowManager.LayoutParams> getWindowLayoutParams ()

Returns
`Optional<WindowManager.LayoutParams>` |

### toString

    String toString ()

Returns
`String` |

- ## Interfaces

  - BaseLayerComponent
  - EspressoException
  - FailureHandler
  - IdlingResource
  - IdlingResource.ResourceCallback
  - UiController
  - ViewAction
  - ViewAssertion
  - ViewFinder
  - ViewInteractionComponent

- ## Classes

  - AmbiguousViewMatcherException.Builder
  - DataInteraction
  - Espresso
  - GraphHolder
  - IdlingPolicies
  - IdlingPolicy
  - NoMatchingViewException.Builder
  - PerformException.Builder
  - Root
  - Root.Builder
  - ViewInteraction

- ## Exceptions

  - AmbiguousViewMatcherException
  - AppNotIdleException
  - IdlingResourceTimeoutException
  - InjectEventSecurityException
  - NoActivityResumedException
  - NoMatchingRootException
  - NoMatchingViewException
  - PerformException