TimePickerDefaults
object TimePickerDefaults
Contains the default values used by TimePicker
Summary
Public functions |
|
|---|---|
TimePickerColors |
Creates a |
TimePickerColors |
@ComposableCreates a |
TimePickerSelection |
@RequiresApi(value = 26)The default |
Public properties |
|
|---|---|
TimePickerType |
The default |
Public functions
timePickerColors
@Composable
fun timePickerColors(): TimePickerColors
Creates a TimePickerColors for a TimePicker.
timePickerColors
@Composable
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: Color = Color.Unspecified |
The content color of selected picker. |
unselectedPickerContentColor: Color = Color.Unspecified |
The content color of unselected pickers. |
separatorColor: Color = Color.Unspecified |
The color of separator between the pickers. |
pickerLabelColor: Color = Color.Unspecified |
The color of the picker label. |
confirmButtonContentColor: Color = Color.Unspecified |
The content color of the confirm button. |
confirmButtonContainerColor: Color = Color.Unspecified |
The container color of the confirm button. |
timePickerSelection
@RequiresApi(value = 26)
@Composable
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.
Public properties
timePickerType
val timePickerType: TimePickerType
The default TimePickerType for TimePicker aligns with the current system time format.