# CircularProgressIndicatorDefaults

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults.kt+class:androidx.wear.protolayout.material3.CircularProgressIndicatorDefaults) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

*** ** * ** ***


```
object CircularProgressIndicatorDefaults
```

<br />

*** ** * ** ***

## Summary

| ### Constants |
|---|---|
| `const @https://developer.android.com/reference/kotlin/androidx/annotation/Dimension(unit = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#LARGE_STROKE_WIDTH() = 8.0f` Large stroke width for circular progress indicator. |
| `const @https://developer.android.com/reference/kotlin/androidx/annotation/Dimension(unit = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#SMALL_STROKE_WIDTH() = 4.0f` Small stroke width for circular progress indicator. |

| ### Public functions |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/Dimension(unit = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#calculateRecommendedGapSize(kotlin.Float)(strokeWidth: @https://developer.android.com/reference/kotlin/androidx/annotation/Dimension(unit = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns recommended size of the gap based on `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#calculateRecommendedGapSize(kotlin.Float)`. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledProgressIndicatorColors()()` Returns the recommended `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` object to be used when placing the progress indicator inside a graphic card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledCardColors()` from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledTonalProgressIndicatorColors()()` Returns the recommended `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` object to be used when placing the progress indicator inside a graphic card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledTonalCardColors()` from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledVariantProgressIndicatorColors()()` Returns the recommended `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` object to be used when placing the progress indicator inside a graphic card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledVariantCardColors()` from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#recommendedAnimationSpec()` The recommended animation spec for animations from current progress to a new progress value. |

## Constants

### LARGE_STROKE_WIDTH

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
const val LARGE_STROKE_WIDTH = 8.0f: @Dimension(unit = 0) Float
```

Large stroke width for circular progress indicator.

### SMALL_STROKE_WIDTH

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
const val SMALL_STROKE_WIDTH = 4.0f: @Dimension(unit = 0) Float
```

Small stroke width for circular progress indicator.

## Public functions

### calculateRecommendedGapSize

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun calculateRecommendedGapSize(strokeWidth: @Dimension(unit = 0) Float): @Dimension(unit = 0) Float
```

Returns recommended size of the gap based on `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults#calculateRecommendedGapSize(kotlin.Float)`.

The absolute value can be customized with `gapSize` parameter on `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/package-summary#(androidx.wear.protolayout.material3.MaterialScope).circularProgressIndicator(kotlin.Float,androidx.wear.protolayout.expression.DynamicBuilders.DynamicFloat,androidx.wear.protolayout.modifiers.LayoutModifier,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.wear.protolayout.material3.ProgressIndicatorColors,androidx.wear.protolayout.DimensionBuilders.ContainerDimension)`.

### MaterialScope.filledProgressIndicatorColors

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults.kt+function:filledProgressIndicatorColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledProgressIndicatorColors(): ProgressIndicatorColors
```

Returns the recommended `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` object to be used when placing the progress indicator inside a graphic card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledCardColors()` from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

### MaterialScope.filledTonalProgressIndicatorColors

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults.kt+function:filledTonalProgressIndicatorColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledTonalProgressIndicatorColors(): ProgressIndicatorColors
```

Returns the recommended `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` object to be used when placing the progress indicator inside a graphic card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledTonalCardColors()` from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

### MaterialScope.filledVariantProgressIndicatorColors

Artifact: [androidx.wear.protolayout:protolayout-material3](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material3/CircularProgressIndicatorDefaults.kt+function:filledVariantProgressIndicatorColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledVariantProgressIndicatorColors(): ProgressIndicatorColors
```

Returns the recommended `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ProgressIndicatorColors` object to be used when placing the progress indicator inside a graphic card with `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/CardDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledVariantCardColors()` from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

## Public properties

### recommendedAnimationSpec

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
val recommendedAnimationSpec: AnimationParameterBuilders.AnimationSpec
```

The recommended animation spec for animations from current progress to a new progress value.