# LayoutElementBuilders.DashedArcLine.Builder

# LayoutElementBuilders.DashedArcLine.Builder

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.Builder)  
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.Builder "View this page in Java")

<br />

```
class LayoutElementBuilders.DashedArcLine.Builder
```

<br />

*** ** * ** ***

Builder for[DashedArcLine](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine).

## Summary

|                                                                                                                                                                                                                       ### Public constructors                                                                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#Builder())`()` Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder). |

|                                                                        ### Public functions                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LayoutElementBuilders.DashedArcLine](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine)                 | [build](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#build())`()` Builds an instance with the values accumulated in this Builder.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setArcDirection](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setArcDirection(int))`(arcDirection: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the direction in which this line is drawn.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setArcDirection](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setArcDirection(androidx.wear.protolayout.LayoutElementBuilders.ArcDirectionProp))`(arcDirection: `[LayoutElementBuilders.ArcDirectionProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcDirectionProp)`)` Sets the direction in which this line is drawn.                                                                                                                                                                                                                                                                                                         |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setColor(androidx.wear.protolayout.ColorBuilders.ColorProp))`(color: `[ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)`)` Sets the color of this line.                                                                                                                                                                                                                                                                                                                                                                                              |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setLayoutConstraintsForDynamicLength](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setLayoutConstraintsForDynamicLength(androidx.wear.protolayout.DimensionBuilders.AngularLayoutConstraint))`(` ` angularLayoutConstraint: `[DimensionBuilders.AngularLayoutConstraint](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.AngularLayoutConstraint) `)` Sets the bounding constraints for the layout affected by the dynamic value from[setLength](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setLength(androidx.wear.protolayout.DimensionBuilders.DegreesProp)). |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setLength](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setLength(androidx.wear.protolayout.DimensionBuilders.DegreesProp))`(length: `[DimensionBuilders.DegreesProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DegreesProp)`)` Sets the length of this line in degrees, including gaps.                                                                                                                                                                                                                                                                                                                                             |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setLinePattern](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setLinePattern(androidx.wear.protolayout.LayoutElementBuilders.DashedLinePattern))`(linePattern: `[LayoutElementBuilders.DashedLinePattern](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern)`)` Sets the dashed line pattern which describes how the arc line is segmented by gaps.                                                                                                                                                                                                                                                                     |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setModifiers(androidx.wear.protolayout.ModifiersBuilders.ArcModifiers))`(modifiers: `[ModifiersBuilders.ArcModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers)`)` Sets[androidx.wear.protolayout.ModifiersBuilders.Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)for this element.                                                                                                                                                                                                       |
| [LayoutElementBuilders.DashedArcLine.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 500)` [setThickness](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder#setThickness(float))`(thickness: @`[Dimension](https://developer.android.com/reference/kotlin/androidx/annotation/Dimension)`(unit = 0) `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Sets the thickness of this line.                                                                                                                                                                                                                                                                                                                                                               |

## Public constructors

### Builder

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
Builder()
```

Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder).  

## Public functions

### build

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

```
fun build(): LayoutElementBuilders.DashedArcLine
```

Builds an instance with the values accumulated in this Builder.  

### setArcDirection

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setArcDirection(arcDirection: Int): LayoutElementBuilders.DashedArcLine.Builder
```

Sets the direction in which this line is drawn. If not set, defaults to the[Arc](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc)container's direction where it is placed in.  

### setArcDirection

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setArcDirection(arcDirection: LayoutElementBuilders.ArcDirectionProp): LayoutElementBuilders.DashedArcLine.Builder
```

Sets the direction in which this line is drawn. If not set, defaults to the[Arc](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc)container's direction where it is placed in.  

### setColor

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setColor(color: ColorBuilders.ColorProp): LayoutElementBuilders.DashedArcLine.Builder
```

Sets the color of this line.  

### setLayoutConstraintsForDynamicLength

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setLayoutConstraintsForDynamicLength(
    angularLayoutConstraint: DimensionBuilders.AngularLayoutConstraint
): LayoutElementBuilders.DashedArcLine.Builder
```

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

### setLength

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setLength(length: DimensionBuilders.DegreesProp): LayoutElementBuilders.DashedArcLine.Builder
```

Sets the length of this line in degrees, including gaps. If not defined, defaults to 0.  

### setLinePattern

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setLinePattern(linePattern: LayoutElementBuilders.DashedLinePattern): LayoutElementBuilders.DashedArcLine.Builder
```

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

### setModifiers

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setModifiers(modifiers: ModifiersBuilders.ArcModifiers): LayoutElementBuilders.DashedArcLine.Builder
```

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

### setThickness

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

```
@RequiresSchemaVersion(major = 1, minor = 500)
fun setThickness(thickness: @Dimension(unit = 0) Float): LayoutElementBuilders.DashedArcLine.Builder
```

Sets the thickness of this line. If not defined, defaults to 0.