# DimensionBuilders.WrappedDimensionProp

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/DimensionBuilders.java+class:androidx.wear.protolayout.DimensionBuilders.WrappedDimensionProp) 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 DimensionBuilders.WrappedDimensionProp implements DimensionBuilders.ContainerDimension
```

<br />

*** ** * ** ***

A type for a dimension that sizes itself to the size of its children (i.e. WRAP_CONTENT in Android parlance).

## Summary

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

| ### Public methods |
|---|---|
| `@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/DimensionBuilders.WrappedDimensionProp#getMinimumSize()()` Gets the minimum size of this dimension. |
| `@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/DimensionBuilders.WrappedDimensionProp#toString()()` |

## Public methods

### getMinimumSize

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

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

Gets the minimum size of this dimension. If not set, then there is no minimum size.

### toString

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