# DimensionBuilders.WrappedDimensionProp

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

*** ** * ** ***

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

<br />

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

|                                                       ### Public functions                                                       |
|----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DimensionBuilders.DpProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DpProp)`?` | [getMinimumSize](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.WrappedDimensionProp#getMinimumSize())`()` Gets the minimum size of this dimension. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.WrappedDimensionProp#toString())`()`                                                      |

## Public functions

### getMinimumSize

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

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

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

### toString

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