Android
public object TimePickerDefaults
Contains the default values used by TimePicker
Functions
timePickerSelection
@RequiresApi(Build.VERSION_CODES.O)
@Composable
public fun timePickerSelection(timePickerType: TimePickerType): TimePickerSelection
The default TimePickerSelection for TimePicker is set to the first available time component based on the provided TimePickerType and current system time format.
timePickerColors
@Composable
public fun timePickerColors(): TimePickerColors
Creates a TimePickerColors for a TimePicker.
timePickerColors
@Composable
public fun timePickerColors(
selectedPickerContentColor: Color = Color.Unspecified,
unselectedPickerContentColor: Color = Color.Unspecified,
separatorColor: Color = Color.Unspecified,
pickerLabelColor: Color = Color.Unspecified,
confirmButtonContentColor: Color = Color.Unspecified,
confirmButtonContainerColor: Color = Color.Unspecified,
): TimePickerColors
Creates a TimePickerColors for a TimePicker.
Parameters
| selectedPickerContentColor | The content color of selected picker. |
| unselectedPickerContentColor | The content color of unselected pickers. |
| separatorColor | The color of separator between the pickers. |
| pickerLabelColor | The color of the picker label. |
| confirmButtonContentColor | The content color of the confirm button. |
| confirmButtonContainerColor | The container color of the confirm button. |