Object

DurationPickerDefaults

Contains the default values used by DurationPicker.

Source set: Android
public object DurationPickerDefaults

Contains the default values used by DurationPicker.

Properties

type

Source set: Android
public val type: DurationPickerType = DurationPickerType.HoursMinutesSeconds

The default DurationPickerType for DurationPicker.

Functions

initialSelection

Source set: Android
public fun initialSelection(
        durationPickerType: DurationPickerType = this.type
    ): DurationPickerSelection

The default DurationPickerSelection for DurationPicker is set to the first available duration component based on the provided DurationPickerType.

colors

Source set: Android
@Composable
    public fun colors(): DurationPickerColors

Creates a DurationPickerColors for a DurationPicker.

colors

Source set: Android
@Composable
    public fun colors(
        selectedPickerContentColor: Color = Color.Unspecified,
        unselectedPickerContentColor: Color = Color.Unspecified,
        invalidPickerContentColor: Color = Color.Unspecified,
        separatorColor: Color = Color.Unspecified,
        pickerLabelColor: Color = Color.Unspecified,
        confirmButtonContentColor: Color = Color.Unspecified,
        confirmButtonContainerColor: Color = Color.Unspecified,
        pickerBackgroundColor: Color = Color.Unspecified,
    ): DurationPickerColors

Creates a DurationPickerColors for a DurationPicker.

Parameters

selectedPickerContentColor The content color of the selected picker.
unselectedPickerContentColor The content color of unselected pickers.
invalidPickerContentColor The content color of invalid picker options.
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.
pickerBackgroundColor The background color of the picker, used for the top and bottom gradient fade on the picker columns. Defaults to Color.Unspecified, which makes the fade transparent, so it works on any background, including gradients and images.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: