# 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
public final 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 |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/car/app/model/StrokeCap#DEFAULT() = 0` The default stroke cap style defined by the system. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/model/StrokeCap#ROUND() = 1` Begin and end contours with a semicircle extension. |
| `static final int` | `https://developer.android.com/reference/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)

```
public static final int DEFAULT = 0
```

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)

```
public static final int ROUND = 1
```

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)

```
public static final int SQUARE = 2
```

Begin and end contours with a half square extension.