Tap

public enum Tap implements Tapper


Executes different click types to given position.

Summary

Enum Values

DOUBLE
LONG
SINGLE

Public methods

static Tap

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

static Tap[]

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

Inherited methods

From androidx.test.espresso.action.Tapper
abstract Tapper.Status
sendTap(
    UiController uiController,
    float[] coordinates,
    float[] precision
)

This method is deprecated.

Use @{link #sendTap(UiController, float[], float[], int, int)} instead This will call the @{link #sendTap(UiController, float[], float[], int, int)} with SOURCE_UNKNOWN, BUTTON_PRIMARY by default.

abstract Tapper.Status
sendTap(
    UiController uiController,
    float[] coordinates,
    float[] precision,
    int inputDevice,
    int buttonState
)

Sends a MotionEvent to the given UiController.

Enum Values

DOUBLE

Tap Tap.DOUBLE

LONG

Tap Tap.LONG

SINGLE

Tap Tap.SINGLE

Public methods

valueOf

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

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

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