{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PickerActions

class PickerActions


Espresso action for interacting with DatePicker and TimePicker.

See also
<a href="http://developer.android.com/guide/topics/ui/controls/pickers.html">Pickers API

guide

Summary

Public constructors

Public functions

java-static ViewAction!
setDate(year: Int, monthOfYear: Int, dayOfMonth: Int)

Returns a ViewAction that sets a date on a DatePicker.

java-static ViewAction!
setTime(hours: Int, minutes: Int)

Returns a ViewAction that sets a time on a TimePicker.

Public constructors

PickerActions

PickerActions()

Public functions

setDate

java-static fun setDate(year: Int, monthOfYear: Int, dayOfMonth: Int): ViewAction!

Returns a ViewAction that sets a date on a DatePicker.

setTime

java-static fun setTime(hours: Int, minutes: Int): ViewAction!

Returns a ViewAction that sets a time on a TimePicker.