GeneralLocation


public enum GeneralLocation implements CoordinatesProvider


Calculates coordinate position for general locations.

Summary

Public methods

static @NonNull CoordinatesProvider
translate(@NonNull CoordinatesProvider coords, float dx, float dy)

Translates the given coordinates by the given distances.

static GeneralLocation

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

static GeneralLocation[]

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

Inherited methods

From androidx.test.espresso.action.CoordinatesProvider
abstract float[]

Calculates coordinates of given view.

Public methods

translate

public static @NonNull CoordinatesProvider translate(@NonNull CoordinatesProvider coords, float dx, float dy)

Translates the given coordinates by the given distances. The distances are given in term of the view's size -- 1.0 means to translate by an amount equivalent to the view's length.

Parameters
@NonNull CoordinatesProvider coords

the CoordinatesProvider to translate

float dx

the distance in x direction

float dy

the distance in y direction

valueOf

public static GeneralLocation 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
GeneralLocation

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

public static GeneralLocation[] 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
GeneralLocation[]

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