{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class DrawerActions
Espresso actions for using a DrawerLayout.
| See also | |
|---|---|
<a href="http://developer.android.com/design/patterns/navigation-drawer.html">Navigation |
drawer design guide |
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static ViewAction! |
close()Creates an action which closes the |
java-static ViewAction! |
Creates an action which closes the |
java-static Unit |
This function is deprecated. Use |
java-static Unit |
This function is deprecated. Use |
java-static ViewAction! |
open()Creates an action which opens the |
java-static ViewAction! |
Creates an action which opens the |
java-static Unit |
This function is deprecated. Use |
java-static Unit |
This function is deprecated. Use |
java-static fun close(): ViewAction!
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.
java-static fun close(gravity: Int): ViewAction!
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.
java-static fun open(): ViewAction!
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.
java-static fun open(gravity: Int): ViewAction!
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.