# LayoutElementBuilders.ArcSpacer

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

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 0)
public final class LayoutElementBuilders.ArcSpacer implements LayoutElementBuilders.ArcLayoutElement
```

<br />

*** ** * ** ***

A simple spacer used to provide padding between adjacent elements in an `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.Arc`.

## Summary

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

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.AngularDimension` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcSpacer#getAngularLength()()` Gets the length of this spacer. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.DegreesProp` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcSpacer#getLength()()` Gets the length of this spacer, in degrees. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers` | `https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcSpacer#getModifiers()()` Gets `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Modifiers` for this element. |
| `@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.ArcSpacer#getThickness()()` Gets the thickness of this spacer, in DP. |
| `@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.ArcSpacer#toString()()` |

## Public methods

### getAngularLength

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

```
public @Nullable DimensionBuilders.AngularDimension getAngularLength()
```

Gets the length of this spacer.

### getLength

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

```
public @Nullable DimensionBuilders.DegreesProp getLength()
```

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

### getModifiers

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

```
public @Nullable ModifiersBuilders.ArcModifiers getModifiers()
```

Gets `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Modifiers` for this element.

### getThickness

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

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

Gets the thickness of this spacer, in DP. If not defined, defaults to 0.

### toString

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