# LayoutElementBuilders.ArcLine

# LayoutElementBuilders.ArcLine

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

<br />

```
@RequiresSchemaVersion(major = 1, minor = 0)
class LayoutElementBuilders.ArcLine : LayoutElementBuilders.ArcLayoutElement
```

<br />

*** ** * ** ***

A line that can be used in an[Arc](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc)and renders as a round progress bar.

## Summary

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

|                                                                        ### 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.ArcLine#getArcDirection())`()` Gets defines the direction in which line drawn.                                                                                                                                                                                                           |
| [ColorBuilders.Brush](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.Brush)`?`                                             | [getBrush](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getBrush())`()` Gets a brush used to draw this line.                                                                                                                                                                                                                                    |
| [ColorBuilders.ColorProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ColorBuilders.ColorProp)`?`                                     | [getColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#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.ArcLine#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.ArcLine#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.ArcLine#getLength())`()` Gets the length of this line, in degrees.                                                                                                                                                                                                                             |
| [ModifiersBuilders.ArcModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers)`?`                       | [getModifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getModifiers())`()` Gets[androidx.wear.protolayout.ModifiersBuilders.Modifiers](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers)for this element.                                                                              |
| [LayoutElementBuilders.StrokeCapProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.StrokeCapProp)`?`             | [getStrokeCap](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#getStrokeCap())`()` Gets the line stroke cap.                                                                                                                                                                                                                                       |
| [DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`?`                                   | [getThickness](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcLine#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.ArcLine#toString())`()`                                                                                                                                                                                                                                                                         |

## Public functions

### getArcDirection

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

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

Gets defines the direction in which line drawn.  

### getBrush

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

```
fun getBrush(): ColorBuilders.Brush?
```

Gets a brush used to draw this line. If set, the brush will be used instead of the color provided in`setColor()`.  

### getColor

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

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

Gets the color of this line.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

If a brush is set, this color will not be used.  

### getLayoutConstraintsForDynamicLength

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

### getLength

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

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

Gets the length of this line, in degrees. If not defined, defaults to 0.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).  

### getModifiers

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

### getStrokeCap

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

```
fun getStrokeCap(): LayoutElementBuilders.StrokeCapProp?
```

Gets the line stroke cap. If not defined, defaults to STROKE_CAP_ROUND.  

### getThickness

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

```
fun getThickness(): DimensionBuilders.DpProp?
```

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

### toString

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