🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

swipeLeft

Performs a swipe left gesture along the centerY of the associated node.

swipeLeft

Source set: Common
@Deprecated(
    message = "Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`"
)
public fun GestureScope.swipeLeft(): Unit

Performs a swipe left gesture along the centerY of the associated node. The gesture starts slightly left of the right side of the node and ends at the left side.

swipeLeft

Source set: Common
@Deprecated(
    message = "Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`"
)
public fun GestureScope.swipeLeft(
    startX: Float = rightFuzzed,
    endX: Float = left,
    durationMillis: Long = 200,
): Unit

Performs a swipe left gesture along the centerY of the associated node, from startX till endX, taking durationMillis milliseconds.

Parameters

startX The x-coordinate of the start of the swipe. Must be greater than or equal to the endX. By default slightly left of the right of the node.
endX The x-coordinate of the end of the swipe. Must be less than or equal to the startX. By default the left of the node.
durationMillis The duration of the swipe. By default 200 milliseconds.

swipeLeft

Source set: Common
public fun IndirectPointerInjectionScope.swipeLeft(
    startX: Float,
    endX: Float,
    durationMillis: Long = 200,
)

Performs a swipe left gesture on nodes in the focus path along y = IndirectPointerInjectionScope.inputDeviceCenter.y, from startX till endX, taking durationMillis milliseconds.

Parameters

startX The x-coordinate of the start of the swipe. Must be greater than or equal to the endX.
endX The x-coordinate of the end of the swipe. Must be less than or equal to the startX.
durationMillis The duration of the swipe. By default, 200 milliseconds.

swipeLeft

Source set: Common
public fun TouchInjectionScope.swipeLeft(
    startX: Float = right,
    endX: Float = left,
    durationMillis: Long = 200,
)

Performs a swipe left gesture along y = [centerY](/jetpack-compose/androidx.compose.ui/ui-test/properties/centerY/api) of the associated node, from startX till endX, taking durationMillis milliseconds.

Parameters

startX The x-coordinate of the start of the swipe. Must be greater than or equal to the endX. By default the right of the node.
endX The x-coordinate of the end of the swipe. Must be less than or equal to the startX. By default the left of the node.
durationMillis The duration of the swipe. By default 200 milliseconds.