# LayoutElementBuilders.DashedLinePattern

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

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 500)
public final class LayoutElementBuilders.DashedLinePattern
```

<br />

*** ** * ** ***

A dashed line pattern which describes how the dashed arc line is segmented by gaps. It determines the gap size and the gap locations.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.DegreesProp>` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern#getGapLocations()()` Gets the list of each gap's center location in degrees. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.DpProp` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern#getGapSize()()` Gets the size in dp of the gap between the arc line segments. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern#toString()()` |

## Public methods

### getGapLocations

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

```
public @NonNull List<DimensionBuilders.DegreesProp> getGapLocations()
```

Gets the list of each gap's center location in degrees.

### getGapSize

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

```
public @Nullable DimensionBuilders.DpProp getGapSize()
```

Gets the size in dp of the gap between the arc line segments.

### toString

```
public @NonNull String toString()
```