Stay organized with collections Save and categorize content based on your preferences.

Press

public enum Press implements PrecisionDescriber


Returns different touch target sizes.

Summary

Enum Values

FINGER
PINPOINT
THUMB

Public constructors

Public methods

static Press

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

static Press[]

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

Inherited methods

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

Different touch target sizes.

Enum Values

PINPOINT

Press Press.PINPOINT

Public constructors

Press

public Press()

Public methods

valueOf

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

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 Press[] 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
Press[]

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