Summary: Methods | Inherited Methods | [Expand All]

# DrawerMatchers

`public final class DrawerMatchers`
`extends Object` ``

java.lang.Object
↳ | android.support.test.espresso.contrib.DrawerMatchers

Hamcrest matchers for a `DrawerLayout`.

## Summary

### Public methods
`static Matcher<View>` | `isClosed()` Returns a matcher that verifies that the drawer (with gravity START) is closed.
`static Matcher<View>` | `isClosed(int gravity)` Returns a matcher that verifies that the drawer with the specified gravity is closed.
`static Matcher<View>` | `isOpen(int gravity)` Returns a matcher that verifies that the drawer with the specified gravity is open.
`static Matcher<View>` | `isOpen()` Returns a matcher that verifies that the drawer (with gravity START) is open.

### 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

### isClosed

    Matcher<View> isClosed ()

Returns a matcher that verifies that the drawer (with gravity START) is closed. Matches only when the drawer is fully closed. Use `isOpen()` instead of `not(isClosed()))` when you wish to check that the drawer is fully open.

Returns
`Matcher<View>` |

### isClosed

    Matcher<View> isClosed (int gravity)

Returns a matcher that verifies that the drawer with the specified gravity is closed. Matches only when the drawer is fully closed. Use `isOpen(int)` instead of `not(isClosed()))` when you wish to check that the drawer is fully open.

Parameters
`gravity` | `int`

Returns
`Matcher<View>` |

### isOpen

    Matcher<View> isOpen (int gravity)

Returns a matcher that verifies that the drawer with the specified gravity is open. Matches only when the drawer is fully open. Use `isClosed(int)` instead of `not(isOpen())` when you wish to check that the drawer is fully closed.

Parameters
`gravity` | `int`

Returns
`Matcher<View>` |

### isOpen

    Matcher<View> isOpen ()

Returns a matcher that verifies that the drawer (with gravity START) is open. Matches only when the drawer is fully open. Use `isClosed()` instead of `not(isOpen())` when you wish to check that the drawer is fully closed.

Returns
`Matcher<View>` |

- ## Interfaces

  - RecyclerViewActions.PositionableRecyclerViewAction

- ## Classes

  - AccessibilityChecks
  - CountingIdlingResource
  - DrawerActions
  - DrawerMatchers
  - NavigationViewActions
  - PickerActions
  - RecyclerViewActions