public final class

DrawerActions

extends Object
java.lang.Object
   ↳ android.support.test.espresso.contrib.DrawerActions

Class Overview

Espresso actions for using a DrawerLayout.

Summary

Public Methods
static void closeDrawer(int drawerLayoutId)
Closes the DrawerLayout with the given id.
static void openDrawer(int drawerLayoutId)
Opens the DrawerLayout with the given id.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void closeDrawer (int drawerLayoutId)

Closes the DrawerLayout with the given id. This method blocks until the drawer is fully closed. No operation if the drawer is already closed.

public static void openDrawer (int drawerLayoutId)

Opens the DrawerLayout with the given id. This method blocks until the drawer is fully open. No operation if the drawer is already open.