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 and gravity START.
static void closeDrawer(int drawerLayoutId, int gravity)
Closes the DrawerLayout with the given id and gravity.
static void openDrawer(int drawerLayoutId, int gravity)
Opens the DrawerLayout with the given id and gravity.
static void openDrawer(int drawerLayoutId)
Opens the DrawerLayout with the given id and gravity START.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void closeDrawer (int drawerLayoutId)

Closes the DrawerLayout with the given id and gravity START. This method blocks until the drawer is fully closed. This method will throw an exception if the drawer is already closed.

public static void closeDrawer (int drawerLayoutId, int gravity)

Closes the DrawerLayout with the given id and gravity. This method blocks until the drawer is fully closed. This method will throw an exception if the drawer is already closed.

public static void openDrawer (int drawerLayoutId, int gravity)

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

public static void openDrawer (int drawerLayoutId)

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