PickerActions
public final class PickerActions
Espresso action for interacting with DatePicker and TimePicker.
Summary
Public methods |
|
|---|---|
static ViewAction |
setDate(int year, int monthOfYear, int dayOfMonth)Returns a |
static ViewAction |
setTime(int hours, int minutes)Returns a |
Public methods
setDate
public static ViewAction setDate(int year, int monthOfYear, int dayOfMonth)
Returns a ViewAction that sets a date on a DatePicker.
| Parameters | |
|---|---|
int year |
The year. |
int monthOfYear |
The month which is starting from zero. |
int dayOfMonth |
The day of the month. |
setTime
public static ViewAction setTime(int hours, int minutes)
Returns a ViewAction that sets a time on a TimePicker.
| Parameters | |
|---|---|
int hours |
the hour to set, in the range (0-23). |
int minutes |
the minute to set, in the range (0-59). |