Deprecated
Replaced by TouchInjectionScope. Use performTouchInput instead of performGesture
Added in 1.11.0-rc01
Deprecated in 1.11.0-rc01
fun GestureScope.swipeRight() = delegateScope.touch { swipeRight() }
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.
Deprecated
Replaced by TouchInjectionScope. Use performTouchInput instead of performGesture
Added in 1.11.0-rc01
Deprecated in 1.11.0-rc01
@ExperimentalTestApi
fun GestureScope.swipeRight(
startX: Float = leftFuzzed,
endX: Float = right,
durationMillis: Long = 200,
) = delegateScope.touch { swipeRight(startX, endX, durationMillis) }
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. |
Added in 1.11.0-rc01
Deprecated in 1.11.0-rc01
fun TouchInjectionScope.swipeRight(
startX: Float = left,
endX: Float = right,
durationMillis: Long = 200,
)
Performs a swipe right gesture along y = [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 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. |