# CarProgressBarStyle

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/model/CarProgressBarStyle.java+class:androidx.car.app.model.CarProgressBarStyle) Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

*** ** * ** ***


```
@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
class CarProgressBarStyle
```

<br />

*** ** * ** ***

Defines the visual style of a `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBar`.

This style can be used to customize the appearance of the progress bar, such as its color or stroke cap.

Custom styles will fall back to host defaults if they are unset, or if they fail host-enforced contrast requirements.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle.Builder` A builder of `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle`. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle#equals(java.lang.Object)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarColor?` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle#getColor()()` Returns the color of the progress bar, or `null` if not set. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle#getStrokeCap()()` Returns the stroke cap of the progress bar, or `https://developer.android.com/reference/kotlin/androidx/car/app/model/StrokeCap#DEFAULT()` if not set. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarColor?` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle#getTrackColor()()` Returns the color of the track behind the indicator, or `null` if not set. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarProgressBarStyle#toString()()` |

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```

### getColor

Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

```
fun getColor(): CarColor?
```

Returns the color of the progress bar, or `null` if not set.

### getStrokeCap

Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

```
fun getStrokeCap(): Int
```

Returns the stroke cap of the progress bar, or `https://developer.android.com/reference/kotlin/androidx/car/app/model/StrokeCap#DEFAULT()` if not set.

### getTrackColor

Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

```
fun getTrackColor(): CarColor?
```

Returns the color of the track behind the indicator, or `null` if not set.

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```