selectYearMonth

fun selectYearMonth(year: Int, month: Int)

Programmatically selects year and month.

Throws

if year or month is outside the supported range.


fun selectYearMonth(yearMonth: YearMonth)

Programmatically selects yearMonth.


Programmatically selects the closest year/month to yearMonth that is allowed by items.

Use this overload when app-owned state can contain values outside custom picker lists or year/month bounds.


fun selectYearMonth(year: Int, month: Int, items: YearMonthPickerItems)

Programmatically selects the closest year/month to year and month that is allowed by items.