# ProgressIndicatorColors

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

*** ** * ** ***


```
public class ProgressIndicatorColors
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use the new class `https://developer.android.com/reference/androidx/wear/protolayout/material/ProgressIndicatorColors` which provides the same API and functionality.

Represents the indicator and track colors used in a progress indicator Tiles component.

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

## Summary

| ### Public constructors |
|---|
| `[ProgressIndicatorColors](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#ProgressIndicatorColors(androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp indicatorColor, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp trackColor )` **This method is deprecated.** Deprecated in Java |
| `[ProgressIndicatorColors](https://developer.android.com/reference/androidx/wear/tiles/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 )` **This method is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getIndicatorColor](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#getIndicatorColor())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/ColorBuilders.ColorProp` | `[getTrackColor](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#getTrackColor())()` **This method is deprecated.** Deprecated in Java |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors` | `[progressIndicatorColors](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#progressIndicatorColors(androidx.wear.tiles.material.Colors))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/Colors colors)` **This method is deprecated.** Deprecated in Java |

## Public constructors

### ProgressIndicatorColors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public [ProgressIndicatorColors](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#ProgressIndicatorColors(androidx.wear.tiles.ColorBuilders.ColorProp,androidx.wear.tiles.ColorBuilders.ColorProp))(
    @NonNull ColorBuilders.ColorProp indicatorColor,
    @NonNull ColorBuilders.ColorProp trackColor
)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

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

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

### ProgressIndicatorColors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public [ProgressIndicatorColors](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#ProgressIndicatorColors(int,int))(
    @ColorInt int indicatorColor,
    @ColorInt int trackColor
)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

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

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

## Public methods

### getIndicatorColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public @NonNull ColorBuilders.ColorProp [getIndicatorColor](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#getIndicatorColor())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

The indicator color to be used for a progress indicator Tiles component.

### getTrackColor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public @NonNull ColorBuilders.ColorProp [getTrackColor](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#getTrackColor())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

The background track color to be used for a progress indicator Tiles component.

### progressIndicatorColors

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static @NonNull ProgressIndicatorColors [progressIndicatorColors](https://developer.android.com/reference/androidx/wear/tiles/material/ProgressIndicatorColors#progressIndicatorColors(androidx.wear.tiles.material.Colors))(@NonNull Colors colors)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

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