{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

Tap

enum Tap implements Tapper


Executes different click types to given position.

Summary

Enum Values

DOUBLE
LONG
SINGLE

Public constructors

Tap()

Inherited methods

From class androidx.test.espresso.action.Tapper
abstract Object
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 Object
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 constructors

Tap

public final Tap()