ViewMatchers.Visibility

public static final enum ViewMatchers.Visibility
extends Enum<ViewMatchers.Visibility>

java.lang.Object
   ↳ java.lang.Enum<androidx.test.espresso.matcher.ViewMatchers.Visibility>
     ↳ androidx.test.espresso.matcher.ViewMatchers.Visibility


Enumerates the possible list of values for View.getVisibility().

Summary

Enum values

ViewMatchers.Visibility  GONE

 

ViewMatchers.Visibility  INVISIBLE

 

ViewMatchers.Visibility  VISIBLE

 

Public methods

static ViewMatchers.Visibility forViewVisibility(View view)

Get the ViewMatchers.Visibility enum for the current value in View.getVisibility().

static ViewMatchers.Visibility forViewVisibility(int visibility)

Get the ViewMatchers.Visibility for the given visibility int.

int getValue()
static ViewMatchers.Visibility valueOf(String name)
static final Visibility[] values()

Inherited methods

Enum values

GONE

public static final ViewMatchers.Visibility GONE

INVISIBLE

public static final ViewMatchers.Visibility INVISIBLE

VISIBLE

public static final ViewMatchers.Visibility VISIBLE

Public methods

forViewVisibility

public static ViewMatchers.Visibility forViewVisibility (View view)

Get the ViewMatchers.Visibility enum for the current value in View.getVisibility().

Parameters
view View: The view to get the visibility value for.

Returns
ViewMatchers.Visibility The current visibility enum value.

forViewVisibility

public static ViewMatchers.Visibility forViewVisibility (int visibility)

Get the ViewMatchers.Visibility for the given visibility int. Must be one of: View.VISIBLE, View.INVISIBLE, or View.GONE.

Parameters
visibility int: The visibility int to lookup.

Returns
ViewMatchers.Visibility The matching ViewMatchers.Visibility enum.

getValue

public int getValue ()

Returns
int

valueOf

public static ViewMatchers.Visibility valueOf (String name)

Parameters
name String

Returns
ViewMatchers.Visibility

values

public static final Visibility[] values ()

Returns
Visibility[]