dispatchTouchEvent

suspend fun dispatchTouchEvent(args: Input.DispatchTouchEventParameter, mode: CommandMode = CommandMode.DEFAULT)

Dispatches a touch event to the page.


suspend fun dispatchTouchEvent(type: String, touchPoints: List<Input.TouchPoint>, modifiers: Int? = null, timestamp: Double? = null)

Dispatches a touch event to the page.

Parameters

type

Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.

touchPoints

Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.

modifiers

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

timestamp

Time at which the event occurred.