GeneralLocation

enum GeneralLocation : CoordinatesProvider


Calculates coordinate position for general locations.

Summary

Public functions

java-static CoordinatesProvider
translate(coords: CoordinatesProvider, dx: Float, dy: Float)

Translates the given coordinates by the given distances.

java-static GeneralLocation!
valueOf(name: String!)

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

java-static Array<GeneralLocation!>!

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

Inherited functions

From androidx.test.espresso.action.CoordinatesProvider
abstract FloatArray<Float>!

Calculates coordinates of given view.

Public functions

translate

java-static fun translate(coords: CoordinatesProvider, dx: Float, dy: Float): CoordinatesProvider

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
coords: CoordinatesProvider

the CoordinatesProvider to translate

dx: Float

the distance in x direction

dy: Float

the distance in y direction

valueOf

java-static fun valueOf(name: String!): GeneralLocation!

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

java-static fun values(): Array<GeneralLocation!>!

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<GeneralLocation!>!

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