Input.dispatchTouchEvent

Dispatches a touch event to the page.

{
  "name": "dispatchTouchEvent",
  "parameters": [
    {
      "name": "type",
      "type": "string",
      "enum": [
        "touchStart",
        "touchEnd",
        "touchMove",
        "touchCancel"
      ],
      "description": "Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one."
    },
    {
      "name": "touchPoints",
      "type": "array",
      "items": {
        "$ref": "TouchPoint"
      },
      "description": "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."
    },
    {
      "name": "modifiers",
      "type": "integer",
      "optional": true,
      "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)."
    },
    {
      "name": "timestamp",
      "$ref": "TimeSinceEpoch",
      "optional": true,
      "description": "Time at which the event occurred."
    }
  ],
  "description": "Dispatches a touch event to the page."
}