swipeRight
@Deprecated(
message = "Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`"
)
public fun GestureScope.swipeRight(): Unit
Performs a swipe right gesture along the centerY of the associated node. The gesture starts slightly right of the left side of the node and ends at the right side.
swipeRight
@Deprecated(
message = "Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`"
)
public fun GestureScope.swipeRight(
startX: Float = leftFuzzed,
endX: Float = right,
durationMillis: Long = 200,
): Unit
Performs a swipe right 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 less than or equal to the endX. By default slightly right of the left of the node. |
| endX | The x-coordinate of the end of the swipe. Must be greater than or equal to the startX. By default the right of the node. |
| durationMillis | The duration of the swipe. By default 200 milliseconds. |
swipeRight
public fun IndirectPointerInjectionScope.swipeRight(
startX: Float,
endX: Float,
durationMillis: Long = 200,
)
Performs a swipe right 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 less than or equal to the endX. |
| endX | The x-coordinate of the end of the swipe. Must be greater than or equal to the startX. |
| durationMillis | The duration of the swipe. By default, 200 milliseconds. |
swipeRight
public fun TouchInjectionScope.swipeRight(
startX: Float = left,
endX: Float = right,
durationMillis: Long = 200,
)
Performs a swipe right 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 less than or equal to the endX. By default the left of the node. |
| endX | The x-coordinate of the end of the swipe. Must be greater than or equal to the startX. By default the right of the node. |
| durationMillis | The duration of the swipe. By default 200 milliseconds. |