longTap

suspend fun longTap(timeout: Duration? = null)(source)

Long click on the one matching node, using Android's default long-press timing.


suspend fun longTap(timeout: Duration? = null, duration: Duration)(source)

Holds a physical finger for duration (1..30000 ms); short presses may not trigger a long-click handler. Must fit the remaining timeout, before any input. Requires the default display. Use the overload without duration for Android's default long press. The existing positional timeout argument keeps its meaning.