---
title: "HingePolicy"
description: "Policies that indicate how hinges are supposed to be addressed in an adaptive layout."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class HingePolicy private constructor(private val value: Int)
```


Policies that indicate how hinges are supposed to be addressed in an adaptive layout.


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val AlwaysAvoid = HingePolicy(0)
```


When rendering content in a layout, always avoid where hinges are.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val AvoidSeparating = HingePolicy(1)
```


When rendering content in a layout, avoid hinges that are separating. Note that an
occluding hinge is supposed to be separating as well but not vice versa.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val AvoidOccluding = HingePolicy(2)
```


When rendering content in a layout, avoid hinges that are occluding. Note that an
occluding hinge is supposed to be separating as well but not vice versa.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val NeverAvoid = HingePolicy(3)
```


When rendering content in a layout, never avoid any hinges, separating or not.





