# StrokeCap

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/StrokeCap.java+class:androidx.car.app.model.StrokeCap) Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

*** ** * ** ***


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

<br />

*** ** * ** ***

Defines the treatment applied to the beginning and end of drawn line segments or progress bar tracks. When drawing a path with a stroke, the cap type/style dictates whether the ends are rounded off, squared, etc. This class contains the allowed types of stroke caps.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/StrokeCap#DEFAULT() = 0` The default stroke cap style defined by the system. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/StrokeCap#ROUND() = 1` Begin and end contours with a semicircle extension. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/StrokeCap#SQUARE() = 2` Begin and end contours with a half square extension. |

## Constants

### DEFAULT

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

```
const val DEFAULT = 0: Int
```

The default stroke cap style defined by the system.

### ROUND

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

```
const val ROUND = 1: Int
```

Begin and end contours with a semicircle extension.

### SQUARE

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

```
const val SQUARE = 2: Int
```

Begin and end contours with a half square extension.