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

*** ** * ** ***


```
public final class LayoutElementBuilders.DashedArcLine.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine`.

## Summary

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

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

Creates an instance of `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedArcLine.Builder`.

## Public methods

### build

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

```
public @NonNull LayoutElementBuilders.DashedArcLine build()
```

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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setArcDirection(int arcDirection)
```

Sets the direction in which this line is drawn. If not set, defaults to the `https://developer.android.com/reference/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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setArcDirection(
    @NonNull LayoutElementBuilders.ArcDirectionProp arcDirection
)
```

Sets the direction in which this line is drawn. If not set, defaults to the `https://developer.android.com/reference/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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setColor(@NonNull ColorBuilders.ColorProp color)
```

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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setLayoutConstraintsForDynamicLength(
    @NonNull DimensionBuilders.AngularLayoutConstraint angularLayoutConstraint
)
```

Sets the bounding constraints for the layout affected by the dynamic value from `https://developer.android.com/reference/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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setLength(@NonNull DimensionBuilders.DegreesProp length)
```

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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setLinePattern(
    @NonNull LayoutElementBuilders.DashedLinePattern linePattern
)
```

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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setModifiers(@NonNull ModifiersBuilders.ArcModifiers modifiers)
```

Sets `https://developer.android.com/reference/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)
public @NonNull LayoutElementBuilders.DashedArcLine.Builder setThickness(@Dimension(unit = 0) float thickness)
```

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