# LayoutElementBuilders.StrokeCapProp

Artifact: [androidx.wear.protolayout:protolayout](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/LayoutElementBuilders.java+class:androidx.wear.protolayout.LayoutElementBuilders.StrokeCapProp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 200)
public final class LayoutElementBuilders.StrokeCapProp
```

<br />

*** ** * ** ***

An extensible `StrokeCap` property.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Shadow` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp#getShadow()()` Gets the stroke cap's shadow. |
| `int` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp#getValue()()` Gets the value. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp#toString()()` |

## Public methods

### getShadow

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

```
public @Nullable ModifiersBuilders.Shadow getShadow()
```

Gets the stroke cap's shadow. When set, the stroke cap will be drawn with a shadow, which allows it to be visible on top of other similarly colored elements.

Only opaque colors are supported in `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcLine` if a shadow is set. Any transparent colors will have their alpha component set to 0xFF (opaque).

### getValue

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

```
public int getValue()
```

Gets the value.

### toString

```
public @NonNull String toString()
```