activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2025年9月29日

DrawPattern

在设备屏幕上绘制由多个点标记的路径。 根据手指在设备屏幕上的路径记录创建路径的点。 您可以添加多个手指路径,以模拟涉及多个手指的屏幕交互。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

重载

重载描述
DrawPattern(FingerPath, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)在设备屏幕上绘制由多个点标记的单个路径。
DrawPattern(List<FingerPath>, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)在设备屏幕上绘制由多个点标记的多条路径。 适用于用户执行需要用两根手指在设备屏幕上操作的场景。

DrawPattern(FingerPath, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)

在设备屏幕上绘制由多个点标记的单个路径。

DrawPattern(
	    FingerPath fingerPath,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions.DrawPatternOptions options = nullDrawPattern(
	    FingerPath fingerPath,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions.DrawPatternOptions options = null
fingerPath FingerPath
All the points recorded from the path of the finger on the device screen, on a X-Y axis. Visit FingerPath Class to learn how to create the finger path, using the FingerPath Constructor and FingerPath Methods, part of the FingerPath class.
coordinatesType CoordinatesTypeEnum (可选)
将手指坐标指定为ElementExists API 的CoordinatesTypeEnum对象。 默认值为 null。 可用类型包括:
  • PhysicalPixels
  • DeviceIndependentPixels
pressType PressTypeEnum (可选)
为上述参数的上面输入的CoordinatesTypeEnum指定按压类型。 默认值为CoordinatesTypeEnum.DeviceIndependentPixels 。 您可以使用的压机类型包括:
  • 短按
  • 长按
waitTime 浮动(可选)
等待手指路径中的点完成操作的时间 (以毫秒为单位)。
提示:要按预期工作, iOS设备的waitTime应高于0
options MobileOptions.DrawPatternOptions (Optional)
DrawPattern操作指定MobileOptions.DrawPatternOptions 。 默认值为 null。

DrawPattern(List<FingerPath>, CoordinatesTypeEnum, PressTypeEnum, float, MobileOptions.DrawPatternOptions)

在设备屏幕上绘制由多个点标记的多条路径。 适用于用户执行需要用两根手指在设备屏幕上操作的场景。

DrawPattern(
	    List<FingerPath> fingerPaths,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions. DrawPatternOptions options = null
)DrawPattern(
	    List<FingerPath> fingerPaths,
	    CoordinatesTypeEnum coordinatesType = CoordinatesTypeEnum.DeviceIndependentPixels,
	    PressTypeEnum pressType = PressTypeEnum.ShortPress,
	    float waitTime = 0f,
	    MobileOptions. DrawPatternOptions options = null
)
fingerPaths List<FingerPath>
A list of finger paths created by multiple fingers on a screen, on a X-Y axis (for example, in a zoom-in or zoom-out scenario, the user touches the screen with two fingers in order to perform the action). Visit FingerPath Class to learn how to create the finger path, using the FingerPath Constructor and FingerPath Methods, part of the FingerPath class.
coordinatesType CoordinatesTypeEnum (可选)
将手指坐标指定为ElementExists API 的CoordinatesTypeEnum对象。 默认值为 null。
pressType PressTypeEnum (可选)
为上述参数的上面输入的CoordinatesTypeEnum指定按压类型。 默认值为PressTypeEnum.ShortPress 。 您可以使用的压机类型包括:
  • 短按
  • 长按
waitTime 浮动(可选)
等待手指路径中的点完成操作的时间 (以毫秒为单位)。
提示:要按预期工作, iOS设备的waitTime应高于0
options MobileOptions.DrawPatternOptions (Optional)
DrawPattern操作指定MobileOptions.DrawPatternOptions 。 默认值为 null。

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。