swipeUp
@Deprecated(
message = "Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`"
)
public fun GestureScope.swipeUp(): Unit
Performs a swipe up gesture along the centerX of the associated node. The gesture starts slightly above the bottom of the node and ends at the top.
swipeUp
@Deprecated(
message = "Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`"
)
public fun GestureScope.swipeUp(
startY: Float = bottomFuzzed,
endY: Float = top,
durationMillis: Long = 200,
): Unit
Performs a swipe up gesture along the centerX of the associated node, from startY till endY, taking durationMillis milliseconds.
Parameters
| startY | The y-coordinate of the start of the swipe. Must be greater than or equal to the endY. By default slightly above the bottom of the node. |
| endY | The y-coordinate of the end of the swipe. Must be less than or equal to the startY. By default the top of the node. |
| durationMillis | The duration of the swipe. By default 200 milliseconds. |
swipeUp
public fun IndirectPointerInjectionScope.swipeUp(
startY: Float,
endY: Float,
durationMillis: Long = 200,
)
Performs a swipe up gesture on nodes in the focus path along x = IndirectPointerInjectionScope.inputDeviceCenter.x, from startY till endY, taking durationMillis milliseconds.
Parameters
| startY | The y-coordinate of the start of the swipe. Must be greater than or equal to the endY. |
| endY | The y-coordinate of the end of the swipe. Must be less than or equal to the startY. |
| durationMillis | The duration of the swipe. By default, 200 milliseconds. |
swipeUp
public fun TouchInjectionScope.swipeUp(
startY: Float = bottom,
endY: Float = top,
durationMillis: Long = 200,
)
Performs a swipe up gesture along x = [centerX](/jetpack-compose/androidx.compose.ui/ui-test/properties/centerX/api) of the associated node, from startY till endY, taking durationMillis milliseconds.
Parameters
| startY | The y-coordinate of the start of the swipe. Must be greater than or equal to the endY. By default the bottom of the node. |
| endY | The y-coordinate of the end of the swipe. Must be less than or equal to the startY. By default the top of the node. |
| durationMillis | The duration of the swipe. By default 200 milliseconds. |