synthesizeTapGesture

suspend fun synthesizeTapGesture(args: Input.SynthesizeTapGestureParameter, mode: CommandMode = CommandMode.DEFAULT)

Synthesizes a tap gesture over a time period by issuing appropriate touch events.


suspend fun synthesizeTapGesture(x: Double, y: Double, duration: Int? = null, tapCount: Int? = null, gestureSourceType: Input.GestureSourceType? = null)

Synthesizes a tap gesture over a time period by issuing appropriate touch events.

Parameters

x

X coordinate of the start of the gesture in CSS pixels.

y

Y coordinate of the start of the gesture in CSS pixels.

duration

Duration between touchdown and touchup events in ms (default: 50).

tapCount

Number of times to perform the tap (e.g. 2 for double tap, default: 1).

gestureSourceType

Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).