puppeteer/docs/api/puppeteer.touchscreen.md

79 lines
1.1 KiB
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: Touchscreen
---
# Touchscreen class
The Touchscreen class exposes touchscreen events.
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
export declare abstract class Touchscreen
2022-07-05 13:41:43 +00:00
```
## Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `Touchscreen` class.
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
<span id="tap">[tap(x, y)](./puppeteer.touchscreen.tap.md)</span>
</td><td>
</td><td>
Dispatches a `touchstart` and `touchend` event.
</td></tr>
<tr><td>
<span id="touchend">[touchEnd()](./puppeteer.touchscreen.touchend.md)</span>
</td><td>
</td><td>
Dispatches a `touchend` event.
</td></tr>
<tr><td>
<span id="touchmove">[touchMove(x, y)](./puppeteer.touchscreen.touchmove.md)</span>
</td><td>
</td><td>
Dispatches a `touchMove` event.
</td></tr>
<tr><td>
<span id="touchstart">[touchStart(x, y)](./puppeteer.touchscreen.touchstart.md)</span>
</td><td>
</td><td>
Dispatches a `touchstart` event.
</td></tr>
</tbody></table>