Skip to main content
Version: 24.18.0

Touchscreen.touchStart() 方法

¥Touchscreen.touchStart() method

调度 touchstart 事件。

¥Dispatches a touchstart event.

签名

¥Signature

class Touchscreen {
abstract touchStart(x: number, y: number): Promise<TouchHandle>;
}

参数

¥Parameters

范围

类型

描述

x

数字

水龙头的水平位置。

y

数字

水龙头的垂直位置。

Returns:

Promise<TouchHandle>

已启动触摸的句柄。

¥A handle for the touch that was started.