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

Tap

enum Tap : Tapper


Executes different click types to given position.

Summary

Enum Values

DOUBLE
LONG
SINGLE

Public constructors

Tap()

Inherited functions

From class androidx.test.espresso.action.Tapper
abstract Any!
sendTap(
    uiController: UiController!,
    coordinates: FloatArray!,
    precision: FloatArray!
)

This function 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 Any!
sendTap(
    uiController: UiController!,
    coordinates: FloatArray!,
    precision: FloatArray!,
    inputDevice: Int,
    buttonState: Int
)

Sends a MotionEvent to the given UiController.

Enum Values

DOUBLE

val Tap.DOUBLETap

LONG

val Tap.LONGTap

SINGLE

val Tap.SINGLETap

Public constructors

Tap

Tap()