# LayoutElementBuilders.DashedArcLine

# LayoutElementBuilders.DashedArcLine

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.DashedArcLine)  
Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

*** ** * ** ***

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

<br />

```
@RequiresSchemaVersion(major = 1, minor = 500)
class LayoutElementBuilders.DashedArcLine : LayoutElementBuilders.ArcLayoutElement
```

<br />

*** ** * ** ***

A dashed arc line. It is an arc line made up of arc line segments separated by gaps, and can be placed in an[Arc](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc)container.

## Summary

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

|                                                                                   ### Public functions                                                                                   |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LayoutElementBuilders.ArcDirectionProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcDirectionProp)`?`                             | [getArcDirection](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getArcDirection())`()` Gets the direction in which this line is drawn.                                                                                                                                                                                                                 |
| [ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)`?`                                                           | [getColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getColor())`()` Gets the color of this line.                                                                                                                                                                                                                                                  |
| [DimensionBuilders.AngularLayoutConstraint](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.AngularLayoutConstraint)`?`                       | [getLayoutConstraintsForDynamicLength](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getLayoutConstraintsForDynamicLength())`()` Gets the bounding constraints for the layout affected by the dynamic value from[getLength](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getLength()). |
| [DimensionBuilders.DegreesProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DegreesProp)`?`                                               | [getLength](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getLength())`()` Gets the length of this line in degrees, including gaps.                                                                                                                                                                                                                    |
| [LayoutElementBuilders.DashedLinePattern](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern)`?`                           | [getLinePattern](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getLinePattern())`()` Gets the dashed line pattern which describes how the arc line is segmented by gaps.                                                                                                                                                                               |
| [ModifiersBuilders.ArcModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers)`?`                                             | [getModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getModifiers())`()` Gets[androidx.wear.protolayout.ModifiersBuilders.Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)for this element.                                                                                    |
| `@`[Dimension](https://developer.android.com/reference/kotlin/androidx/annotation/Dimension)`(unit = 0) `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [getThickness](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getThickness())`()` Gets the thickness of this line.                                                                                                                                                                                                                                      |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                        | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#toString())`()`                                                                                                                                                                                                                                                                               |

## Public functions

### getArcDirection

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

```
fun getArcDirection(): LayoutElementBuilders.ArcDirectionProp?
```

Gets the direction in which this line is drawn.  

### getColor

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

```
fun getColor(): ColorBuilders.ColorProp?
```

Gets the color of this line.  

### getLayoutConstraintsForDynamicLength

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

```
fun getLayoutConstraintsForDynamicLength(): DimensionBuilders.AngularLayoutConstraint?
```

Gets the bounding constraints for the layout affected by the dynamic value from[getLength](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine#getLength()).  

### getLength

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

```
fun getLength(): DimensionBuilders.DegreesProp?
```

Gets the length of this line in degrees, including gaps.  

### getLinePattern

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

```
fun getLinePattern(): LayoutElementBuilders.DashedLinePattern?
```

Gets the dashed line pattern which describes how the arc line is segmented by gaps.  

### getModifiers

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

```
fun getModifiers(): ModifiersBuilders.ArcModifiers?
```

Gets[androidx.wear.protolayout.ModifiersBuilders.Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)for this element.  

### getThickness

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

```
fun getThickness(): @Dimension(unit = 0) Float
```

Gets the thickness of this line.  

### toString

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