# DurationPickerDefaults

> Contains the default values used by [DurationPicker].

## API Reference

> Source set: Android

```kotlin
public object DurationPickerDefaults
```

Contains the default values used by [DurationPicker](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/components/DurationPicker/api.md).

## Properties

### type

> Source set: Android

```kotlin
public val type: DurationPickerType = DurationPickerType.HoursMinutesSeconds
```

The default [DurationPickerType](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/DurationPickerType/api.md) for [DurationPicker](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/components/DurationPicker/api.md).

## Functions

### initialSelection

> Source set: Android

```kotlin
public fun initialSelection(
        durationPickerType: DurationPickerType = this.type
    ): DurationPickerSelection
```

The default [DurationPickerSelection](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/DurationPickerSelection/api.md) for [DurationPicker](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/components/DurationPicker/api.md) is set to the first available
duration component based on the provided [DurationPickerType](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/DurationPickerType/api.md).

### colors

> Source set: Android

```kotlin
@Composable
    public fun colors(): DurationPickerColors
```

Creates a [DurationPickerColors](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/DurationPickerColors/api.md) for a [DurationPicker](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/components/DurationPicker/api.md).

### colors

> Source set: Android

```kotlin
@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](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/DurationPickerColors/api.md) for a [DurationPicker](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/components/DurationPicker/api.md).

#### 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. |
