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

*** ** * ** ***


```
public class ProgressIndicatorColors
```

<br />

*** ** * ** ***

Represents the indicator and track colors used in `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`.

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors#ProgressIndicatorColors(androidx.wear.protolayout.ColorBuilders.ColorProp,androidx.wear.protolayout.ColorBuilders.ColorProp)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp indicatorColor, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp trackColor )` Constructor for `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors` object. |
| `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors#ProgressIndicatorColors(int,int)( @https://developer.android.com/reference/androidx/annotation/ColorInt int indicatorColor, @https://developer.android.com/reference/androidx/annotation/ColorInt int trackColor )` Constructor for `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors` object. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp` | `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors#getIndicatorColor()()` The indicator color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp` | `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors#getTrackColor()()` The background track color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors` | `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors#progressIndicatorColors(androidx.wear.protolayout.material.Colors)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/material/Colors colors)` Returns a `https://developer.android.com/reference/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 `https://developer.android.com/reference/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)

```
public ProgressIndicatorColors(
    @NonNull ColorBuilders.ColorProp indicatorColor,
    @NonNull ColorBuilders.ColorProp trackColor
)
```

Constructor for `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors` object.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp indicatorColor` | The indicator color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/ColorBuilders.ColorProp trackColor` | The background track color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`. |

### ProgressIndicatorColors

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

```
public ProgressIndicatorColors(
    @ColorInt int indicatorColor,
    @ColorInt int trackColor
)
```

Constructor for `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors` object.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int indicatorColor` | The indicator color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`. Should be in ARGB format. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int trackColor` | The background track color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`. Should be in ARGB format. |

## Public methods

### getIndicatorColor

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

```
public @NonNull ColorBuilders.ColorProp getIndicatorColor()
```

The indicator color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`.

### getTrackColor

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

```
public @NonNull ColorBuilders.ColorProp getTrackColor()
```

The background track color to be used for `https://developer.android.com/reference/androidx/wear/protolayout/material/CircularProgressIndicator`.

### progressIndicatorColors

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

```
public static @NonNull ProgressIndicatorColors progressIndicatorColors(@NonNull Colors colors)
```

Returns a `https://developer.android.com/reference/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 `https://developer.android.com/reference/androidx/wear/protolayout/material/Colors`.