duration Picker Items
fun durationPickerItems(hourItems: List<Int> = DEFAULT_DURATION_HOUR_ITEMS, minuteItems: List<Int> = MINUTE_RANGE, minDuration: Duration? = null, maxDuration: Duration? = null): DurationPickerItems
Creates selectable item sources for a duration picker.
The default elapsed-hour source is 0..23. Pass a custom source to select durations of 24 hours or longer. Item-list validation is performed when the result is coerced or composed.
Return
A DurationPickerItems instance with the specified item sources and scalar bounds.
Parameters
hour Items
Non-negative elapsed whole-hour values. Defaults to 0..23.
minute Items
Minute-within-hour values in 0..59.
min Duration
The smallest selectable duration, inclusive.
max Duration
The largest selectable duration, inclusive.
Throws
if a scalar bound is outside the supported duration domain or the lower bound is greater than the upper bound.