Summary: Methods | Inherited Methods | [Expand All]

# NavigationViewActions

`public final class NavigationViewActions`
`extends Object` ``

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

View actions for interacting with `NavigationView`

## Summary

### Public methods
`static ViewAction` | `navigateTo(int menuItemId)` Returns a `ViewAction` that navigates to a menu item in `NavigationView` using a menu item resource id.

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

### navigateTo

    ViewAction navigateTo (int menuItemId)

Returns a `ViewAction` that navigates to a menu item in `NavigationView` using a menu item resource id.

View constraints:

- View must be a child of a `DrawerLayout`
- View must be of type `NavigationView`
- View must be visible on screen
- View must be displayed on screen

  Parameters
  `menuItemId` | `int`: the resource id of the menu item

  Returns
  `ViewAction` | a `ViewAction` that navigates on a menu item

- ## Interfaces

  - RecyclerViewActions.PositionableRecyclerViewAction

- ## Classes

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