Skip to content

Most visited

Recently visited

navigation

PickerActions

public final class PickerActions
extends Object

java.lang.Object
   ↳ android.support.test.espresso.contrib.PickerActions


Espresso action for interacting with DatePicker and TimePicker.

See also:

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.

Inherited methods

From class java.lang.Object

Public methods

setDate

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

Returns a ViewAction that sets a date on a DatePicker.

Parameters
year int
monthOfYear int
dayOfMonth int
Returns
ViewAction

setTime

ViewAction setTime (int hours, 
                int minutes)

Returns a ViewAction that sets a time on a TimePicker.

Parameters
hours int
minutes int
Returns
ViewAction
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.