timepicker

@Composable
fun MaterialDialogScope.timepicker(initialTime: LocalTime = LocalTime.now().noSeconds(), title: String = "SELECT TIME", colors: TimePickerColors = TimePickerDefaults.colors(), waitForPositiveButton: Boolean = true, timeRange: ClosedRange<LocalTime> = LocalTime.MIN..LocalTime.MAX, is24HourClock: Boolean = false, onTimeChange: (LocalTime) -> Unit = {})

Parameters

initialTime

The time to be shown to the user when the dialog is first shown. Defaults to the current time if this is not set

waitForPositiveButton

if true the onTimeChange callback will only be called when the positive button is pressed, otherwise it will be called on every input change

timeRange

any time outside this range will be disabled

is24HourClock

uses the 24 hour clock face when true

onTimeChange

callback with a LocalTime object when the user completes their input