# HingeInfo

# HingeInfo

Artifact:[androidx.compose.material3.adaptive:adaptive](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/Posture.kt+class:androidx.compose.material3.adaptive.HingeInfo)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  class HingeInfo
  ```

*** ** * ** ***

A class that contains the info of a hinge relevant to a[Posture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture).

## Summary

|                                                                                                                                                                                                                                                                                                                                                               ### Public constructors                                                                                                                                                                                                                                                                                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [HingeInfo](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#HingeInfo(androidx.compose.ui.geometry.Rect,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean,kotlin.Boolean))`(` ` bounds: `[Rect](https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect)`,` ` isFlat: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`,` ` isVertical: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`,` ` isSeparating: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`,` ` isOccluding: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) `)` | Cmn |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` | Cmn |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#hashCode())`()`                                                                                            | Cmn |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#toString())`()`                                                                                            | Cmn |

|                                  ### Public properties                                   |
|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Rect](https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect) | [bounds](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#bounds()) the bounds of the hinge in the relevant viewport.                                                                                                                                         | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)      | [isFlat](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#isFlat()) `true`if the hinge is fully open and the relevant window space presented to the user is flat.                                                                                             | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)      | [isOccluding](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#isOccluding()) `true`if the hinge conceals part of the display.                                                                                                                                | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)      | [isSeparating](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#isSeparating()) `true`if the hinge creates two logical display areas.                                                                                                                         | Cmn |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)      | [isVertical](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/HingeInfo#isVertical()) `true`if the hinge is a vertical one, i.e., it separates the viewport into left and right;`false`if the hinge is horizontal, i.e., it separates the viewport into top and bottom. | Cmn |

## Public constructors

### HingeInfo

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
HingeInfo(
    bounds: Rect,
    isFlat: Boolean,
    isVertical: Boolean,
    isSeparating: Boolean,
    isOccluding: Boolean
)
```  

|                                             Parameters                                              |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `bounds: `[Rect](https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect)  | the bounds of the hinge in the relevant viewport.                                                                                                                                 |
| `isFlat: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)       | `true`if the hinge is fully open and the relevant window space presented to the user is flat.                                                                                     |
| `isVertical: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)   | `true`if the hinge is a vertical one, i.e., it separates the viewport into left and right;`false`if the hinge is horizontal, i.e., it separates the viewport into top and bottom. |
| `isSeparating: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if the hinge creates two logical display areas.                                                                                                                             |
| `isOccluding: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)  | `true`if the hinge conceals part of the display.                                                                                                                                  |

## Public functions

### equals

Cmn  

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

Cmn  

```
open fun hashCode(): Int
```  

### toString

Cmn  

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

## Public properties

### bounds

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
val bounds: Rect
```

the bounds of the hinge in the relevant viewport.  

### isFlat

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
val isFlat: Boolean
```

`true`if the hinge is fully open and the relevant window space presented to the user is flat.  

### isOccluding

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
val isOccluding: Boolean
```

`true`if the hinge conceals part of the display.  

### isSeparating

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
val isSeparating: Boolean
```

`true`if the hinge creates two logical display areas.  

### isVertical

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
val isVertical: Boolean
```

`true`if the hinge is a vertical one, i.e., it separates the viewport into left and right;`false`if the hinge is horizontal, i.e., it separates the viewport into top and bottom.