# LayoutElementBuilders.StrokeCapProp

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp "View this page in Java")

<br />

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

<br />

*** ** * ** ***

An extensible`StrokeCap`property.

## Summary

|                                                                                                                                                   ### Nested types                                                                                                                                                   |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[LayoutElementBuilders.StrokeCapProp.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp.Builder) Builder for[StrokeCapProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp) |

|                                                       ### Public functions                                                       |
|----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ModifiersBuilders.Shadow](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Shadow)`?` | [getShadow](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp#getShadow())`()` Gets the stroke cap's shadow. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                      | [getValue](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp#getValue())`()` Gets the value.                 |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp#toString())`()`                                 |

## Public functions

### getShadow

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

```
fun getShadow(): ModifiersBuilders.Shadow?
```

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[ArcLine](https://developer.android.com/reference/kotlin/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)  

```
fun getValue(): Int
```

Gets the value.  

### toString

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