# DimensionBuilders.AngularLayoutConstraint

# DimensionBuilders.AngularLayoutConstraint

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.AngularLayoutConstraint)  
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.AngularLayoutConstraint "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 200)
class DimensionBuilders.AngularLayoutConstraint
```

<br />

*** ** * ** ***

A type for specifying layout constraints when using[DegreesProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DegreesProp)on a data bindable layout element.

## Summary

|                                                                                                                                                                 ### Nested types                                                                                                                                                                  |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[DimensionBuilders.AngularLayoutConstraint.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.AngularLayoutConstraint.Builder) Builder for[AngularLayoutConstraint](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.AngularLayoutConstraint). |

|                                                                                   ### Public functions                                                                                   |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                              | [getAngularAlignment](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.AngularLayoutConstraint#getAngularAlignment())`()` Gets angular alignment of the actual content within the space reserved by value. |
| `@`[Dimension](https://developer.android.com/reference/kotlin/androidx/annotation/Dimension)`(unit = 0) `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [getValue](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.AngularLayoutConstraint#getValue())`()` Gets the fixed value to reserve the space when used on a layout-changing data bind.                    |

## Public functions

### getAngularAlignment

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

```
fun getAngularAlignment(): Int
```

Gets angular alignment of the actual content within the space reserved by value.  

### getValue

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

```
fun getValue(): @Dimension(unit = 0) Float
```

Gets the fixed value to reserve the space when used on a layout-changing data bind. If not set defaults to the static value of the associated[DegreesProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DimensionBuilders.DegreesProp)field.