2022-08-06 14:49:20 +00:00
|
|
|
---
|
2023-02-13 10:16:54 +00:00
|
|
|
sidebar_label: Touchscreen.touchStart
|
2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
|
2023-02-13 10:16:54 +00:00
|
|
|
# Touchscreen.touchStart() method
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2023-02-13 10:16:54 +00:00
|
|
|
Dispatches a `touchstart` event.
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Touchscreen {
|
2023-02-13 10:16:54 +00:00
|
|
|
touchStart(x: number, y: number): Promise<void>;
|
2022-08-06 14:49:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------ | ------------------------------- |
|
|
|
|
| x | number | Horizontal position of the tap. |
|
|
|
|
| y | number | Vertical position of the tap. |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|