Tap


enum Tap : Tapper


Executes different click types to given position.

Summary

Enum Values

DOUBLE
LONG
SINGLE

Public functions

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

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

java-static Array<Tap!>!

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

Inherited functions

From androidx.test.espresso.action.Tapper
abstract Tapper.Status!
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 Tapper.Status!
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 functions

valueOf

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

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

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

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

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