# Constraint.ChainMode

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/dsl/Constraint.java+class:androidx.constraintlayout.core.dsl.Constraint.ChainMode) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
public enum Constraint.ChainMode
```

<br />

*** ** * ** ***

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/Constraint.ChainMode#PACKED` |   |
| `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/Constraint.ChainMode#SPREAD` |   |
| `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/Constraint.ChainMode#SPREAD_INSIDE` |   |

| ### Public methods |
|---|---|
| `static https://developer.android.com/reference/androidx/constraintlayout/core/dsl/Constraint.ChainMode` | `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/Constraint.ChainMode#valueOf(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` Returns the enum constant of this type with the specified name. |
| `static Constraint.ChainMode[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/Constraint.ChainMode#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### PACKED

```
Constraint.ChainMode Constraint.ChainMode.PACKED
```

### SPREAD

```
Constraint.ChainMode Constraint.ChainMode.SPREAD
```

### SPREAD_INSIDE

```
Constraint.ChainMode Constraint.ChainMode.SPREAD_INSIDE
```

## Public methods

### valueOf

Added in 1.1.2

```
public static Constraint.ChainMode valueOf(String name)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/Constraint.ChainMode` | the enum constant with the specified name |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if this enum type has no constant with the specified name |

### values

Added in 1.1.2

```
public static Constraint.ChainMode[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

| Returns |
|---|---|
| `Constraint.ChainMode[]` | an array containing the constants of this enum type, in the order they're declared |