ViewMatchers.Visibility


enum ViewMatchers.Visibility


Enumerates the possible list of values for getVisibility.

Summary

Enum Values

GONE
INVISIBLE
VISIBLE

Public functions

java-static ViewMatchers.Visibility!

Get the Visibility enum for the current value in getVisibility.

java-static ViewMatchers.Visibility!
forViewVisibility(visibility: Int)

Get the Visibility for the given visibility int.

java-static ViewMatchers.Visibility!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<ViewMatchers.Visibility!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

Int

Public functions

forViewVisibility

java-static fun forViewVisibility(view: View!): ViewMatchers.Visibility!

Get the Visibility enum for the current value in getVisibility.

Parameters
view: View!

The view to get the visibility value for.

Returns
ViewMatchers.Visibility!

The current visibility enum value.

forViewVisibility

java-static fun forViewVisibility(visibility: Int): ViewMatchers.Visibility!

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

Parameters
visibility: Int

The visibility int to lookup.

Returns
ViewMatchers.Visibility!

The matching Visibility enum.

valueOf

java-static fun valueOf(name: String!): ViewMatchers.Visibility!

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
ViewMatchers.Visibility!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<ViewMatchers.Visibility!>!

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
Array<ViewMatchers.Visibility!>!

an array containing the constants of this enum type, in the order they're declared

Public properties

value

val valueInt