跳到主要内容

ClickParams():setTouchIndicator()

在点击落点显示一个圆圈,类似 Android 开发者选项中的“显示点按操作”。

签名​

setTouchIndicator(show: boolean): ClickParams

参数​

参数类型描述
showbooleantrue 绘制指示器

返回值

ClickParams,因此可以链式调用。

描述​

指示器会在点击位置绘制,持续 getTouchIndicatorDuration() 毫秒。默认关闭。这在构建宏或录制演示时很有用。

示例​

Screen:click("buy.png", ClickParams():setTouchIndicator(true))

兼容版本:1.0.0.37 及以上