Start native apps faster with the Composables CLI ->
Object

TimePickerDefaults

Contains the default values used by TimePicker

Source set: Android
public object TimePickerDefaults

Contains the default values used by TimePicker

Properties

timePickerType

Source set: Android
public val timePickerType: TimePickerType

The default TimePickerType for TimePicker aligns with the current system time format.

Functions

timePickerSelection

Source set: Android
@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

Source set: Android
@Composable
    public fun timePickerColors(): TimePickerColors

Creates a TimePickerColors for a TimePicker.

timePickerColors

Source set: Android
@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.