timePickerConstraints

fun timePickerConstraints(minTime: LocalTime? = null, maxTime: LocalTime? = null): TimePickerConstraints

Creates inclusive time constraints for a time picker.

Return

A TimePickerConstraints instance with the specified bounds.

Parameters

minTime

The earliest selectable time, inclusive. Pass null to omit the lower bound.

maxTime

The latest selectable time, inclusive. Pass null to omit the upper bound.