# ProgressIndicatorColors

# ProgressIndicatorColors

Artifact:[androidx.wear.protolayout:protolayout-material](https://developer.android.com/jetpack/androidx/releases/wear-protolayout)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/material/ProgressIndicatorColors.java+class:androidx.wear.protolayout.material.ProgressIndicatorColors)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors "View this page in Java")

<br />

```
class ProgressIndicatorColors
```

<br />

*** ** * ** ***

Represents the indicator and track colors used in[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator).

See[DEFAULT_COLORS](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorDefaults#DEFAULT_COLORS())for the default colors used in a[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator).

## Summary

|                                                                                                                                                                                                                                                                                                                                                     ### Public constructors                                                                                                                                                                                                                                                                                                                                                      |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors#ProgressIndicatorColors(androidx.wear.protolayout.ColorBuilders.ColorProp,androidx.wear.protolayout.ColorBuilders.ColorProp))`(` ` indicatorColor: `[ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)`,` ` trackColor: `[ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp) `)` Constructor for[ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors)object. |
| [ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors#ProgressIndicatorColors(int,int))`(` ` indicatorColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` trackColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` Constructor for[ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors)object.       |

|                                                                ### Public functions                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)                        | [getIndicatorColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors#getIndicatorColor())`()` The indicator color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator).                                                                                                                                                                                                                                                                                                                                                                   |
| [ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)                        | [getTrackColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors#getTrackColor())`()` The background track color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator).                                                                                                                                                                                                                                                                                                                                                                    |
| `java-static `[ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors) | [progressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors#progressIndicatorColors(androidx.wear.protolayout.material.Colors))`(colors: `[Colors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Colors)`)` Returns a[ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors)object, using the current Primary color for indicator color and the current Surface color for the track color from the given[Colors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Colors). |

## Public constructors

### ProgressIndicatorColors

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

```
ProgressIndicatorColors(
    indicatorColor: ColorBuilders.ColorProp,
    trackColor: ColorBuilders.ColorProp
)
```

Constructor for[ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors)object.  

|                                                                  Parameters                                                                   |
|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `indicatorColor: `[ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp) | The indicator color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator).        |
| `trackColor: `[ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)     | The background track color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator). |

### ProgressIndicatorColors

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

```
ProgressIndicatorColors(
    indicatorColor: @ColorInt Int,
    trackColor: @ColorInt Int
)
```

Constructor for[ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors)object.  

|                                                                                        Parameters                                                                                        |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `indicatorColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The indicator color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator). Should be in ARGB format.        |
| `trackColor: @`[ColorInt](https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt)` `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)     | The background track color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator). Should be in ARGB format. |

## Public functions

### getIndicatorColor

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

```
fun getIndicatorColor(): ColorBuilders.ColorProp
```

The indicator color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator).  

### getTrackColor

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

```
fun getTrackColor(): ColorBuilders.ColorProp
```

The background track color to be used for[CircularProgressIndicator](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/CircularProgressIndicator).  

### progressIndicatorColors

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

```
java-static fun progressIndicatorColors(colors: Colors): ProgressIndicatorColors
```

Returns a[ProgressIndicatorColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/ProgressIndicatorColors)object, using the current Primary color for indicator color and the current Surface color for the track color from the given[Colors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material/Colors).