public
final
class
DrawerActions
extends Object
| java.lang.Object | |
| ↳ | android.support.test.espresso.contrib.DrawerActions |
Espresso actions for using a DrawerLayout.
See also:
Public methods | |
|---|---|
static
ViewAction
|
close(int gravity)
Creates an action which closes the |
static
ViewAction
|
close()
Creates an action which closes the |
static
void
|
closeDrawer(int drawerLayoutId, int gravity)
This method is deprecated.
Use |
static
void
|
closeDrawer(int drawerLayoutId)
This method is deprecated.
Use |
static
ViewAction
|
open(int gravity)
Creates an action which opens the |
static
ViewAction
|
open()
Creates an action which opens the |
static
void
|
openDrawer(int drawerLayoutId)
This method is deprecated.
Use |
static
void
|
openDrawer(int drawerLayoutId, int gravity)
This method is deprecated.
Use |
Inherited methods | |
|---|---|
java.lang.Object
| |
ViewAction close (int gravity)
Creates an action which closes the DrawerLayout with the gravity. This method
blocks until the drawer is fully closed. No operation if the drawer is already closed.
| Parameters | |
|---|---|
gravity |
int
|
| Returns | |
|---|---|
ViewAction |
|
ViewAction close ()
Creates an action which closes the DrawerLayout with gravity START. This method
blocks until the drawer is fully closed. No operation if the drawer is already closed.
| Returns | |
|---|---|
ViewAction |
|
void closeDrawer (int drawerLayoutId,
int gravity)
This method is deprecated.
Use open(int) with perform after matching a view. This method will
be removed in the next release.
| Parameters | |
|---|---|
drawerLayoutId |
int
|
gravity |
int
|
void closeDrawer (int drawerLayoutId)
This method is deprecated.
Use close() with perform after matching a view. This method will
be removed in the next release.
| Parameters | |
|---|---|
drawerLayoutId |
int
|
ViewAction open (int gravity)
Creates an action which opens the DrawerLayout drawer with the gravity. This method
blocks until the drawer is fully open. No operation if the drawer is already open.
| Parameters | |
|---|---|
gravity |
int
|
| Returns | |
|---|---|
ViewAction |
|
ViewAction open ()
Creates an action which opens the DrawerLayout drawer with gravity START. This method
blocks until the drawer is fully open. No operation if the drawer is already open.
| Returns | |
|---|---|
ViewAction |
|
void openDrawer (int drawerLayoutId)
This method is deprecated.
Use open() with perform after matching a view. This method will
be removed in the next release.
| Parameters | |
|---|---|
drawerLayoutId |
int
|
void openDrawer (int drawerLayoutId,
int gravity)
This method is deprecated.
Use open(int) with perform after matching a view. This method will
be removed in the next release.
| Parameters | |
|---|---|
drawerLayoutId |
int
|
gravity |
int
|