Touchscreen.touchStart() 方法
🌐 Touchscreen.touchStart() method
分发一个 touchstart 事件。
🌐 Dispatches a touchstart event.
语法
🌐 Signature
class Touchscreen {
abstract touchStart(x: number, y: number): Promise<TouchHandle>;
}
参数
🌐 Parameters
|
范围 🌐 Parameter |
类型 🌐 Type |
描述 🌐 Description |
|---|---|---|
|
x |
number |
水龙头的水平位置。 🌐 Horizontal position of the tap. |
|
y |
number |
水龙头的垂直位置。 🌐 Vertical position of the tap. |
返回:
Promise<TouchHandle>
已启动触摸的句柄。
🌐 A handle for the touch that was started.