# LayoutElementBuilders.DashedLinePattern

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

*** ** * ** ***

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

<br />

```
@RequiresSchemaVersion(major = 1, minor = 500)
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                                                                                                                                                           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[LayoutElementBuilders.DashedLinePattern.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern.Builder) Builder for[DashedLinePattern](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern) |

|                                                                                                                                                               ### Public functions                                                                                                                                                                |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `(`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[DimensionBuilders.DegreesProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DegreesProp)`!>` | [getGapLocations](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern#getGapLocations())`()` Gets the list of each gap's center location in degrees. |
| [DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`?`                                                                                                                                                                                                                  | [getGapSize](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern#getGapSize())`()` Gets the size in dp of the gap between the arc line segments.     |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                                 | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.DashedLinePattern#toString())`()`                                                                       |

## Public functions

### getGapLocations

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

```
fun getGapLocations(): (Mutable)List<DimensionBuilders.DegreesProp!>
```

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)  

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

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

### toString

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