# ViewMatchers.Visibility

Summary:[Enums](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#enumconstants)\|[Methods](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#)  

# ViewMatchers.Visibility

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static
final

enum
ViewMatchers.Visibility
`  
`


``

extends `[Enum](https://developer.android.com/reference/java/lang/Enum.html)`<`[ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)`>


``


`

|---|---|---------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [java.lang.Enum](https://developer.android.com/reference/java/lang/Enum.html)\<[android.support.test.espresso.matcher.ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)\> ||
|   | ↳ | android.support.test.espresso.matcher.ViewMatchers.Visibility |

<br />

*** ** * ** ***

Enumerates the possible list of values for[getVisibility()](https://developer.android.com/reference/android/view/View.html#getVisibility()).

## Summary

|                                                                   ### Enum values                                                                    ||
|----------------------------------------------------------------------------------------------------------------------------------|--------------------|
| [ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility) | `GONE` <br />      |
| [ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility) | `INVISIBLE` <br /> |
| [ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility) | `VISIBLE` <br />   |

|                                                                                                                                                                              ### Public methods                                                                                                                                                                              ||
|--------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                                                     | ` `[getValue](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#getValue())`() `                                                                                             |
| ` static `[ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility) | ` `[valueOf](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#valueOf(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` name) ` |
| ` static final `[Visibility[]](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)      | ` `[values](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#values())`() `                                                                                                 |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#)From class` `[java.lang.Enum](https://developer.android.com/reference/java/lang/Enum.html)` ` |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` final `[Object](https://developer.android.com/reference/java/lang/Object.html)                                                                                                                                     | ` clone() `                                                                                                                                                                  | | ` final int`                                                                                                                                                                                                         | ` compareTo(`[ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)` arg0) `                       | | ` int`                                                                                                                                                                                                               | ` compareTo(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) `                                                                                | | ` final boolean`                                                                                                                                                                                                     | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) `                                                                                   | | ` final void`                                                                                                                                                                                                        | ` finalize() `                                                                                                                                                               | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<`[ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)`>` | ` getDeclaringClass() `                                                                                                                                                      | | ` final int`                                                                                                                                                                                                         | ` hashCode() `                                                                                                                                                               | | ` final `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                     | ` name() `                                                                                                                                                                   | | ` final int`                                                                                                                                                                                                         | ` ordinal() `                                                                                                                                                                | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                           | ` toString() `                                                                                                                                                               | | ` static <T extends `[Enum](https://developer.android.com/reference/java/lang/Enum.html)`<T>> T`                                                                                                                     | ` valueOf(`[Class](https://developer.android.com/reference/java/lang/Class.html)`<T> arg0, `[String](https://developer.android.com/reference/java/lang/String.html)` arg1) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#)From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                                | | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                             | ` finalize() `                                                                             | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility#)From interface` `[java.lang.Comparable](https://developer.android.com/reference/java/lang/Comparable.html)` ` |-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract int` | ` compareTo(`[ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)` arg0) ` | ||

## Enum values

### GONE

```
ViewMatchers.Visibility GONE
```

<br />

<br />

### INVISIBLE

```
ViewMatchers.Visibility INVISIBLE
```

<br />

<br />

### VISIBLE

```
ViewMatchers.Visibility VISIBLE
```

<br />

<br />

## Public methods

### getValue

```
int getValue ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### valueOf

```
ViewMatchers.Visibility valueOf (String name)
```

<br />

<br />

|       Parameters        ||
|--------|-----------------|
| `name` | `String` <br /> |

|                                                                 Returns                                                                  ||
|----------------------------------------------------------------------------------------------------------------------------------|--------|
| [ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility) | <br /> |

### values

```
Visibility[] values ()
```

<br />

<br />

|                                                            Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------------|--------|
| [Visibility[]](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility) | <br /> |

-

  ## Classes

  - [BoundedMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/BoundedMatcher)
  - [CursorMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/CursorMatchers)
  - [CursorMatchers.CursorMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/CursorMatchers.CursorMatcher)
  - [HasBackgroundMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/HasBackgroundMatcher)
  - [LayoutMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/LayoutMatchers)
  - [PreferenceMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/PreferenceMatchers)
  - [RootMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/RootMatchers)
  - [ViewMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers)
-

  ## Enums

  - [ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)