Function

performTouchInput

Executes the touch gesture specified in the given [block].

touchInputAssertDuringClick

fun touchInputAssertDuringClick() {
    composeTestRule
        .onNodeWithTag("myComponent")
        .performTouchInput { down(topLeft) }
        .assertHasClickAction()
        .performTouchInput { up() }
}

touchInputClickAndDrag

fun touchInputClickAndDrag() {
    composeTestRule.onNodeWithTag("myComponent").performTouchInput {
        click()
        advanceEventTime(100)
        swipeUp()
    }
}

touchInputClickOffCenter

fun touchInputClickOffCenter() {
    composeTestRule.onNodeWithTag("myComponent").performTouchInput {
        click(percentOffset(.2f, .5f))
    }
}

touchInputSwipeUp

fun touchInputSwipeUp() {
    composeTestRule.onNodeWithTag("myComponent").performTouchInput { swipeUp() }
}