Android Studio Sign in

public final class PickerActions


Espresso action for interacting with DatePicker and TimePicker.

See Pickers API guide

Summary

Public methods

static ViewAction
setDate(int year, int monthOfYear, int dayOfMonth)

Returns a ViewAction that sets a date on a DatePicker.

static ViewAction
setTime(int hours, int minutes)

Returns a ViewAction that sets a time on a TimePicker.

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).

Morty Proxy This is a proxified and sanitized view of the page, visit original site.