# KeyAttribute.Visibility

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/KeyAttribute.java+class:androidx.constraintlayout.core.dsl.KeyAttribute.Visibility) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
public enum KeyAttribute.Visibility
```

<br />

*** ** * ** ***

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/KeyAttribute.Visibility#GONE` |   |
| `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/KeyAttribute.Visibility#INVISIBLE` |   |
| `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/KeyAttribute.Visibility#VISIBLE` |   |

| ### Public methods |
|---|---|
| `static https://developer.android.com/reference/androidx/constraintlayout/core/dsl/KeyAttribute.Visibility` | `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/KeyAttribute.Visibility#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 KeyAttribute.Visibility[]` | `https://developer.android.com/reference/androidx/constraintlayout/core/dsl/KeyAttribute.Visibility#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### GONE

```
KeyAttribute.Visibility KeyAttribute.Visibility.GONE
```

### INVISIBLE

```
KeyAttribute.Visibility KeyAttribute.Visibility.INVISIBLE
```

### VISIBLE

```
KeyAttribute.Visibility KeyAttribute.Visibility.VISIBLE
```

## Public methods

### valueOf

Added in 1.1.2

```
public static KeyAttribute.Visibility 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/KeyAttribute.Visibility` | 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 KeyAttribute.Visibility[] 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 |
|---|---|
| `KeyAttribute.Visibility[]` | an array containing the constants of this enum type, in the order they're declared |