chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.input / DispatchTouchEventRequest

DispatchTouchEventRequest

data class DispatchTouchEventRequest

Request object containing input parameters for the InputDomain.dispatchTouchEvent command.

Constructors

<init>

Request object containing input parameters for the InputDomain.dispatchTouchEvent command.

DispatchTouchEventRequest(type: String, touchPoints: List<TouchPoint>, modifiers: Int? = null, timestamp: TimeSinceEpoch? = null)

Properties

modifiers

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

val modifiers: Int?

timestamp

Time at which the event occurred.

val timestamp: TimeSinceEpoch?

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.

val touchPoints: List<TouchPoint>

type

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

val type: String