Touchscreen
Namespace: PuppeteerSharp.Input
public abstract class Touchscreen : ITouchscreenSupports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inheritance: object
Implements: ITouchscreen
Derived: CdpTouchscreen
Methods
Section titled “Methods”TapAsync(decimal, decimal)
Section titled “TapAsync(decimal, decimal)”public Task TapAsync(decimal x, decimal y)Dispatches a touchstart and touchend event.
Parameters
| Name | Type | Description |
|---|---|---|
x |
decimal | The touch X location. |
y |
decimal | The touch Y location. |
Returns: Task — Task.
TouchEndAsync()
Section titled “TouchEndAsync()”public Task TouchEndAsync()Dispatches a touchend event on the first touch that is active.
Returns: Task — A Task that resolves when the message was confirmed by the browser.
TouchMoveAsync(decimal, decimal)
Section titled “TouchMoveAsync(decimal, decimal)”public Task TouchMoveAsync(decimal x, decimal y)Dispatches a touchmove event on the first touch that is active.
Parameters
| Name | Type | Description |
|---|---|---|
x |
decimal | The touch X location. |
y |
decimal | The touch Y location. |
Returns: Task — A Task that resolves when the message was confirmed by the browser.
TouchStartAsync(decimal, decimal)
Section titled “TouchStartAsync(decimal, decimal)”public abstract Task<ITouchHandle> TouchStartAsync(decimal x, decimal y)Dispatches a touchstart event.
Parameters
| Name | Type | Description |
|---|---|---|
x |
decimal | The touch X location. |
y |
decimal | The touch Y location. |
Returns: Task<ITouchHandle> — A Task that resolves with a handle for the touch that was started.
Made with love by Dario Kondratiuk