Skip to main content
Version: 22.9.0

Touchscreen.tap() 方法

¥Touchscreen.tap() method

调度 touchstarttouchend 事件。

¥Dispatches a touchstart and touchend event.

签名:

¥Signature:

class Touchscreen {
tap(x: number, y: number): Promise<void>;
}

参数

¥Parameters

范围

类型

描述

x

数字

水龙头的水平位置。

y

数字

水龙头的垂直位置。

Returns:

Promise<void>