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

Swipe

public enum Swipe implements Swiper


Executes different swipe types to given positions.

Summary

Enum Values

FAST

Swipes quickly between the co-ordinates.

SLOW

Swipes deliberately slowly between the co-ordinates, to aid in visual debugging.

Public constructors

Public methods

static Swipe

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

static Swipe[]

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

Inherited methods

From androidx.test.espresso.action.Swiper
abstract Swiper.Status
sendSwipe(
    UiController uiController,
    float[] startCoordinates,
    float[] endCoordinates,
    float[] precision
)

Swipes from startCoordinates to endCoordinates using the given uiController to send MotionEvents.

Enum Values

FAST

Swipe Swipe.FAST

Swipes quickly between the co-ordinates.

SLOW

Swipe Swipe.SLOW

Swipes deliberately slowly between the co-ordinates, to aid in visual debugging.

Public constructors

Swipe

public Swipe()

Public methods

valueOf

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

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

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