Skip to main content

AndroidInput


方法

🌐 Methods

drag

Added in: v1.9 androidInput.drag

fromto 点之间执行拖动。

🌐 Performs a drag between from and to points.

用法

await androidInput.drag(from, to, steps);

参数

返回


press

Added in: v1.9 androidInput.press

按下

🌐 Presses the key.

用法

await androidInput.press(key);

参数

  • key [AndroidKey]#

    要按下的键。

返回


swipe

Added in: v1.9 androidInput.swipe

滑动沿着由定义的路径进行。

🌐 Swipes following the path defined by segments.

用法

await androidInput.swipe(from, segments, steps);

参数

返回


tap

Added in: v1.9 androidInput.tap

在指定的轻击。

🌐 Taps at the specified point.

用法

await androidInput.tap(point);

参数

返回


type

Added in: v1.9 androidInput.type

text输入到当前聚焦的小部件中。

🌐 Types text into currently focused widget.

用法

await androidInput.type(text);

参数

  • text string#

    要输入的文本。

返回