TimePickerWith12HourClock

fun TimePickerWith12HourClock(onTimeConfirm: (LocalTime) -> Unit, modifier: Modifier = Modifier, time: LocalTime = LocalTime.now())

A full screen TimePicker with hours and minutes and AM/PM selector.

This component is designed to take most/all of the screen and utilizes large fonts. In order to ensure that it will draw properly on smaller screens it does not take account of user font size overrides for MaterialTheme.typography.display1 which is used to display the main picker value.

Parameters

onTimeConfirm

the button event handler.

modifier

the modifiers for the Column containing the UI elements.

time

the initial value to seed the picker with.